[openstreetmap/openstreetmap-website] Stop Commons from redirecting outside CSP (PR #6202)
Marwin Hochfelsner
notifications at github.com
Thu Jul 17 23:47:58 UTC 2025
For mobile devices, the request to `OSM.WIKIMEDIA_COMMONS_URL` from #6127 will be redirected to `commons.m.wikimedia.org`, which is subsequently blocked by the CSP.
Directly requesting the desktop version removes the extra redirect.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6202
-- Commit Summary --
* Stop commons from redirecting outside CSP approval
-- File Changes --
M app/assets/javascripts/index/element.js (4)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6202.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6202.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6202
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6202 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250717/f9e177e7/attachment.htm>
More information about the rails-dev
mailing list