use function to prevent invalid https http cross domain actions
Merge pull request #963 from ORCID/fixBaseUriWithHttp

use function to prevent invalid https http cross domain actions