Posted by andrewsuth on July 20, 2012 at 8:35am
3 followers
| Project: | OpenLayers |
| Version: | 6.x-2.x-dev |
| Component: | OL UI |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
At present, it is not possible to enter the URL source for OpenLayers.js using // before the domain name (RFC 1808, Section 4) which allows the browser to determine which protocol to use to retreive the file (HTTPS / HTTP). eg. //www.example.com/js/OpenLayers.js
While openlayers.org itself does not support HTTPS (eg. https://openlayers.org/dev/OpenLayers.js), we use a file from our CDN which does support HTTPS.
Patch attached.
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| openlayers_rfc_1808.patch | 745 bytes | Test request sent | None | View details |
Comments
#1
Added user explanation of the use of the double slash.
#2
Hello @andrewsuth,
Thanks for your patch!
I'm willing to commit it but I need a patch for OL 7.x then I'll commit this patch to OL 6.x.
Thanks
#3
Patch for 7.x-2.x
#4
#5
Committed on 7.x & 6.x.
Thanks andrewsuth !
#6
Automatically closed -- issue fixed for 2 weeks with no activity.