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/6...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to