forked from CGM_Public/pretix_original
Allow http: forms during testing
This commit is contained in:
@@ -187,7 +187,7 @@ class SecurityMiddleware(MiddlewareMixin):
|
|||||||
# form-actions redirect to. In the context of e.g. payment providers or
|
# form-actions redirect to. In the context of e.g. payment providers or
|
||||||
# single-sign-on this can be nearly anything so we cannot really restrict
|
# single-sign-on this can be nearly anything so we cannot really restrict
|
||||||
# this. However, we'll restrict it to HTTPS.
|
# this. However, we'll restrict it to HTTPS.
|
||||||
'form-action': ["{dynamic}", "https:"],
|
'form-action': ["{dynamic}", "https:"] + (['http:'] if settings.SITE_URL.startswith('http://') else []),
|
||||||
'report-uri': ["/csp_report/"],
|
'report-uri': ["/csp_report/"],
|
||||||
}
|
}
|
||||||
if 'Content-Security-Policy' in resp:
|
if 'Content-Security-Policy' in resp:
|
||||||
|
|||||||
Reference in New Issue
Block a user