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

Access to API JS through https #53

Closed
blueyed opened this issue Sep 21, 2015 · 5 comments
Closed

Access to API JS through https #53

blueyed opened this issue Sep 21, 2015 · 5 comments

Comments

@blueyed
Copy link

blueyed commented Sep 21, 2015

I've tried to use a protocol-relative URL to OpenLayers.js in Django (https://code.djangoproject.com/ticket/25436), but it fails, because https://openlayers.org/api/2.13.1/OpenLayers.js cannot be accessed (times out).

When trying to use the github.io subdomain, it redirects:

% curl -I http://openlayers.github.io/api/2.13.1/OpenLayers.js
HTTP/1.1 301 Moved Permanently
[...]
Location: http://openlayers.org/api/2.13.1/OpenLayers.js

Can this be supported?
Should Django use cdnjs, or another similar service instead?

@jimaek
Copy link

jimaek commented Sep 22, 2015

@blueyed
Copy link
Author

blueyed commented Sep 22, 2015

@jimaek
Yeah, it seems to be similar to https://cdnjs.com/libraries/openlayers.

For the fix in Django I'd like to use the recommended version/CDN.
And this should then be mentioned on the homepage / download page, too (#48).

Apart from that, it would be nice to fix access through https to the version on github.io anyway (this issue), if that is possible.

@probins
Copy link

probins commented Mar 20, 2016

I would say you should use https://cdnjs.cloudflare.com/ajax/libs/openlayers/2.13.1/OpenLayers.js

@probins
Copy link

probins commented Oct 16, 2016

this should be fixed now

@blueyed
Copy link
Author

blueyed commented Oct 16, 2016

@probins
Thanks!
Closing this issue here then.
As for Django: it uses cdnjs (IIRC), which makes sense in general.

@blueyed blueyed closed this as completed Oct 16, 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

No branches or pull requests

3 participants