Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the following code in the gmf exemples #1626

Closed
sbrunner opened this issue Jul 26, 2016 · 0 comments · Fixed by #1662
Closed

Add the following code in the gmf exemples #1626

sbrunner opened this issue Jul 26, 2016 · 0 comments · Fixed by #1662
Milestone

Comments

@sbrunner
Copy link
Member

To avoid CORS error

/*
 * Redirect to https
 */
if (window.location.protocol == 'http:' &&
    window.location.port != '3000' &&
    window.location.host != 'localhost') {
  var restOfUrl = window.location.href.substr(5);
  /** @type {Location} */
  window.location = 'https:' + restOfUrl;
}
@sbrunner sbrunner added this to the 2.1 milestone Jul 26, 2016
@sbrunner sbrunner changed the title Add the following code in the gmf axample Add the following code in the gmf exemple Jul 26, 2016
@sbrunner sbrunner changed the title Add the following code in the gmf exemple Add the following code in the gmf exemples Jul 26, 2016
@pgiraud pgiraud mentioned this issue Aug 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant