Fix: Tabs in the content header breaks nginx.
This commit is contained in:
parent
9edfb64c08
commit
bde42a09f7
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ def after_request(response: Response):
|
|||
img-src 'self' https://*.google-analytics.com https://*.googletagmanager.com;
|
||||
connect-src 'self' https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com;
|
||||
object-src 'none';
|
||||
""".replace('\n', '')))
|
||||
""".replace('\n', '').replace('\t', ' ')))
|
||||
response.headers.add("Strict-Transport-Security", "max-age=31536000")
|
||||
response.headers.add("X-Frame-Options", "deny")
|
||||
return response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue