Skip to content

Commit

Permalink
settings/dev: allow http for berlin.de in csp
Browse files Browse the repository at this point in the history
  • Loading branch information
goapunk committed Oct 25, 2023
1 parent e1045b9 commit 0881a95
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions digitalstrategie/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"USER": "django",
"PASSWORD": "",
"HOST": "",
"PORT": "5557",
"PORT": "",
"OPTIONS": {},
}
}
Expand All @@ -55,6 +55,10 @@
"https://stats.liqd.net",
"https://berlin.de",
"https://www.berlin.de",
# only for local testing
"http://berlin.de",
"http://www.berlin.de",

]
CSP_IMG_SRC = [
"'self'",
Expand All @@ -80,11 +84,25 @@
"https://stats.liqd.net",
"https://releases.wagtail.io",
]
CSP_STYLE_SRC = ["'self'", "https://berlin.de", "https://www.berlin.de"]
CSP_STYLE_SRC = [
"'self'",
"https://berlin.de",
"https://www.berlin.de",
# only for local testing
"http://berlin.de",
"http://www.berlin.de",
]
# wagtail userbar requires unsafe-inline for wagtail <= 4.1
CSP_STYLE_SRC_ATTR = ["'self'", "'unsafe-inline'"]
# wagtail admin vendor.js requires unsafe-inline
CSP_STYLE_SRC_ELEM = ["'self'", "https://berlin.de", "https://www.berlin.de"]
CSP_STYLE_SRC_ELEM = [
"'self'",
"https://berlin.de",
"https://www.berlin.de"
# only for local testing
"http://berlin.de",
"http://www.berlin.de",
]
CSP_BASE_URI = ["'self'"]
CSP_CHILD_SRC = ["'none'"]
CSP_FRAME_ANCESTORS = ["'self'"]
Expand Down

0 comments on commit 0881a95

Please sign in to comment.