Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
[Fix bug 745860] Fix CSP reporting and violation.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Socol committed Apr 16, 2012
1 parent f88b44e commit 8e4254d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion settings/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@
# StrictTransport
STS_SUBDOMAINS = True

# Not all URLs need locale.
SUPPORTED_NONLOCALES = list(base.SUPPORTED_NONLOCALES) + [
'csp',
]

AUTHENTICATION_BACKENDS = ('common.backends.MozilliansBrowserID',)

# BrowserID creates a user if one doesn't exist.
Expand Down Expand Up @@ -202,7 +207,8 @@
CSP_IMG_SRC = ("'self'", 'http://statse.webtrendslive.com',
'https://statse.webtrendslive.com',)
CSP_SCRIPT_SRC = ("'self'", 'http://statse.webtrendslive.com',
'https://statse.webtrendslive.com',)
'https://statse.webtrendslive.com',
'https://browserid.org',)
CSP_REPORT_ONLY = True
CSP_REPORT_URI = '/csp/report'

Expand Down

0 comments on commit 8e4254d

Please sign in to comment.