Skip to content

Commit

Permalink
Disable upgrade-insecure-requests for local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
robhudson committed Dec 24, 2024
1 parent 2c1388b commit 4283006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bedrock/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
# support older browsers (mainly Safari)
"frame-src": _csp_child_src,
"frame-ancestors": [csp.constants.NONE],
"upgrade-insecure-requests": True,
"upgrade-insecure-requests": False if DEBUG else True,
"report-uri": csp_report_uri,
},
}
Expand Down

0 comments on commit 4283006

Please sign in to comment.