Wallet detection: Extend CSP header for google pay

This commit is contained in:
Raphael Michel
2023-07-28 16:49:11 +02:00
parent 401c02865b
commit 9e95f3be1b

View File

@@ -271,6 +271,8 @@ class SecurityMiddleware(MiddlewareMixin):
(url.url_name == "event.checkout" and url.kwargs['step'] == "payment")
):
h['script-src'].append('https://pay.google.com')
h['frame-src'].append('https://pay.google.com')
h['connect-src'].append('https://google.com/pay')
if settings.LOG_CSP:
h['report-uri'] = ["/csp_report/"]
if 'Content-Security-Policy' in resp: