Skip to content

Commit

Permalink
config: allow loading external script
Browse files Browse the repository at this point in the history
Co-Authored-by: Peter Weber <peter.weber@rero.ch>
Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
2 people authored and iGor milhit committed Feb 19, 2020
1 parent 0533292 commit b1aa2fe
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions rero_ils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,18 @@ def _(x):
'strict_transport_security_include_subdomains': True,
'content_security_policy': {
'default-src': ['*'],
'img-src': ["'self'", 'data:'],
'style-src': ['*', "'unsafe-inline'"],
'img-src': [
'*',
"'self'",
'data:'
],
'style-src': [
'*',
"'unsafe-inline'"
],
'script-src': [
"'self'",
"'unsafe-eval'",
"'unsafe-inline'",
# '*.rero.ch',
'https://www.googletagmanager.com',
'https://www.google-analytics.com',
Expand Down

0 comments on commit b1aa2fe

Please sign in to comment.