django-location-field icon indicating copy to clipboard operation
django-location-field copied to clipboard

Mixed content error with admin interface, osm, and https

Open amd77 opened this issue 4 years ago • 0 comments

If you browse the admin interface using https:// with openstreetmap provider, browser fails to load images because of "mixed content" (osm images are linked using http://).

One solution could be replacing all ocurrences of "https://" and "http://" with "//" so the web should be browsable using http (debugging using runserver) and https (production deployment). For example, in this file: static/location_field/js/form.js (line 355)

Double check if tile provider provides both protocols.

amd77 avatar Mar 28 '20 14:03 amd77