Skip to content
Merged

fix CSP #3183

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pydotorg/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,11 @@
# Status Page, host included in 'static/js/script.js'
"https://2p66nmmycsj3.statuspage.io",
],
"frame-src": [
SELF,
# Interactive shell on the homepage, see 'templates/python/shell.html'
"https://console.python.org",
],
"frame-ancestors": [SELF],
"base-uri": [SELF],
"object-src": ["'none'"],
Expand Down
3 changes: 0 additions & 3 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@

<meta charset="utf-8">

<link rel="prefetch" href="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js">
<link rel="prefetch" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js">

<meta name="application-name" content="{{ SITE_INFO.site_name }}">
<meta name="apple-mobile-web-app-title" content="{{ SITE_INFO.site_name }}">
<meta name="apple-mobile-web-app-capable" content="yes">
Expand Down
Loading