Revert "Enforce CSP on prod + stage"
This commit is contained in:
Родитель
6b181ce50b
Коммит
952effefb0
|
@ -1255,7 +1255,7 @@ PROD_CDN_HOST = 'https://addons.cdn.mozilla.net'
|
|||
ANALYTICS_HOST = 'https://ssl.google-analytics.com'
|
||||
|
||||
CSP_REPORT_URI = '/__cspreport__'
|
||||
CSP_REPORT_ONLY = False
|
||||
CSP_REPORT_ONLY = True
|
||||
CSP_EXCLUDE_URL_PREFIXES = ()
|
||||
|
||||
# NOTE: CSP_DEFAULT_SRC MUST be set otherwise things not set
|
||||
|
|
|
@ -101,6 +101,7 @@ FXA_CONFIG = {
|
|||
}
|
||||
|
||||
# CSP report endpoint which returns a 204 from addons-nginx in local dev.
|
||||
CSP_REPORT_ONLY = False
|
||||
CSP_REPORT_URI = '/csp-report'
|
||||
|
||||
# Allow GA over http + www subdomain in local development.
|
||||
|
|
|
@ -10,6 +10,7 @@ env = environ.Env()
|
|||
|
||||
# Allow addons-dev CDN for CSP.
|
||||
DEV_CDN_HOST = 'https://addons-dev-cdn.allizom.org'
|
||||
CSP_REPORT_ONLY = False
|
||||
CSP_FONT_SRC += (DEV_CDN_HOST,)
|
||||
CSP_FRAME_SRC += ('https://www.sandbox.paypal.com',)
|
||||
CSP_IMG_SRC += (DEV_CDN_HOST,)
|
||||
|
|
Загрузка…
Ссылка в новой задаче