#21618 closed Cleanup/optimization (fixed)
GeoDjango OpenLayers.js admin include does not work over HTTPS
Reported by: | kz26 | Owned by: | nobody |
---|---|---|---|
Component: | GIS | Version: | 1.6 |
Severity: | Normal | Keywords: | geodjango openlayers gis |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
When attempting to access a GeoDjango-enabled admin page over HTTPS, the GeometryField widgets do not load because the page attempts to load http://openlayers.org/api/2.11/OpenLayers.js over plain HTTP, which is blocked by the Firefox security policy.
Attachments (2)
Change History (8)
comment:1 by , 11 years ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Type: | Bug → Cleanup/optimization |
comment:2 by , 11 years ago
https://help.openstreetmap.org/questions/10920/how-to-embed-a-map-in-my-https-site for an answer related to OpenStreetMap.js
.
comment:3 by , 11 years ago
Has patch: | set |
---|---|
Patch needs improvement: | set |
The above patch needs at least language review.
comment:4 by , 11 years ago
Patch needs improvement: | unset |
---|---|
Triage Stage: | Accepted → Ready for checkin |
comment:5 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
See https://github.com/openlayers/openlayers/issues/1025
The fix for this ticket is to explain in the documentation that you should subclass the widget and specify your own URL (either self or cdn-hosted). Same for
OpenStreetMap.js
.