Fix: Tabs in the content header breaks nginx.

This commit is contained in:
Ben Rog-Wilhelm 2023-09-11 04:29:10 -05:00
parent 9edfb64c08
commit bde42a09f7

View file

@ -56,7 +56,7 @@ def after_request(response: Response):
img-src 'self' https://*.google-analytics.com https://*.googletagmanager.com; img-src 'self' https://*.google-analytics.com https://*.googletagmanager.com;
connect-src 'self' https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com; connect-src 'self' https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com;
object-src 'none'; object-src 'none';
""".replace('\n', ''))) """.replace('\n', '').replace('\t', ' ')))
response.headers.add("Strict-Transport-Security", "max-age=31536000") response.headers.add("Strict-Transport-Security", "max-age=31536000")
response.headers.add("X-Frame-Options", "deny") response.headers.add("X-Frame-Options", "deny")
return response return response