Skip to content

Commit 0a9a3ed

Browse files
author
Arne Tarara - Automated
committed
Merge remote-tracking branch 'upstream/main'
2 parents 6bf5074 + b3cc248 commit 0a9a3ed

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.env.example

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
# Careful about the quoting of directives! It is easy to break.
88
# CSP_DEFAULT_SRC="'self'"
9-
10-
# Enable this rule to allow font awesome to load from CDN
11-
# CSP_FONT_SRC="'self', https://cdnjs.cloudflare.com"
9+
# CSP_SCRIPT_SRC="'self', 'report-sample'"
10+
# CSP_STYLE_SRC="'self', 'report-sample'"
11+
# CSP_IMG_SRC="'self', blob:, i.ytimg.com, www.gravatar.com"
12+
# CSP_CONNECT_SRC="'self', releases.wagtail.org"
13+
# CSP_FRAME_SRC="'self', www.youtube.com"

bakerydemo/settings/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,5 +249,7 @@
249249
CSP_BASE_URI = os.environ.get("CSP_BASE_URI").split(",")
250250
if "CSP_OBJECT_SRC" in os.environ:
251251
CSP_OBJECT_SRC = os.environ.get("CSP_OBJECT_SRC").split(",")
252+
if "CSP_FRAME_SRC" in os.environ:
253+
CSP_FRAME_SRC = os.environ.get("CSP_FRAME_SRC").split(",")
252254
if "CSP_REPORT_URI" in os.environ:
253255
CSP_REPORT_URI = os.environ.get("CSP_REPORT_URI")

0 commit comments

Comments
 (0)