Skip to content

Commit

Permalink
Update with unsafe inline
Browse files Browse the repository at this point in the history
  • Loading branch information
chandra-tacc committed Jul 13, 2023
1 parent db8bc6b commit 00f369e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion server/portal/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,10 +740,11 @@
"cdnjs.cloudflare.com",
"*.googleapis.com",
"*.gstatic.com",
"'unsafe-inline'",
]
CSP_SCRIPT_SRC = [
"'self'",
'strict-dynamic'
"'unsafe-inline'",
]

CSP_INCLUDE_NONCE_IN = ['script-src', 'style-src']
Expand Down
2 changes: 1 addition & 1 deletion server/portal/settings/settings_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# DJANGO SETTINGS COMMON
########################

_DEBUG = True
_DEBUG = False

# Namespace for portal
_PORTAL_NAMESPACE = 'CEP'
Expand Down

0 comments on commit 00f369e

Please sign in to comment.