mozilla / bedrock

Making mozilla.org awesome, one pebble at a time
https://www.mozilla.org
Mozilla Public License 2.0
1.18k stars 915 forks source link

CSP for getpocket.com (prod) includes dev extras #14472

Closed janbrasna closed 4 months ago

janbrasna commented 6 months ago

Description

The production Pocket bedrock CSP includes both EXTRA_CSP_DEFAULT_SRC and _csp_connect_extra_for_dev, like if the wrong www-config is picked up (because I don't see any logic bug in the django/csp code, and it works correctly for mozorg mode — so it has to be the env values for getpocket.com that cause this?)

Steps to reproduce

~ $ http -v HEAD https://getpocket.com/en/about/

Expected result

Screenshot 2024-04-17 at 9 19 26

Actual result

Screenshot 2024-04-17 at 9 19 26

janbrasna commented 4 months ago

wontfix as this won't be used here anymore: