Skip to content

Commit d8bab79

Browse files
authored
CSP settings for Raspberry PI IDE (#341)
* Add PI editor script to CSP * Add Gitbook frame to CSP * 🤦 * Merge branch 'master' into pi_editor_csp * fake 0118 * Merge branch 'master' into pi_editor_csp * No fake
1 parent d7749db commit d8bab79

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

django_site/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ def domain():
276276
"https://region1.google-analytics.com/g/",
277277
"https://crowdin.com/",
278278
"https://stats.g.doubleclick.net/",
279+
"https://o17504.ingest.sentry.io/api/4504055099621376/envelope/",
279280
)
280281
CSP_FONT_SRC = (
281282
"'self'",
@@ -300,6 +301,7 @@ def domain():
300301
"https://www.google.com/recaptcha/",
301302
"https://www.gstatic.com/recaptcha/",
302303
"https://use.typekit.net/mrl4ieu.js",
304+
"https://editor-static.raspberrypi.org/releases/v0.29.1/web-component.js",
303305
f"{domain()}/static/portal/",
304306
f"{domain()}/static/common/",
305307
)
@@ -317,6 +319,7 @@ def domain():
317319
"https://storage.googleapis.com/",
318320
"https://2662351606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/",
319321
"https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/",
322+
"https://code-for-life.gitbook.io/",
320323
"https://www.recaptcha.net/",
321324
"https://www.google.com/recaptcha/",
322325
"https://crowdin.com/",

0 commit comments

Comments
 (0)