HTTP referer: move setting it to nginx from python

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-10-29 16:50:33 -05:00
parent ef4fc4dd99
commit 8bbcb9902e
2 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,6 @@ def before_request():
def after_request(response):
response.headers.add("Strict-Transport-Security", "max-age=31536000")
response.headers.add("X-Frame-Options", "deny")
response.headers.add("Referrer-Policy", "same-origin")
if response.status_code < 400:
g.db.commit()
g.db.close()

View File

@ -4,6 +4,7 @@ server {
listen 80;
listen [::]:80;
proxy_set_header Host $http_host;
add_header Referrer-Policy sameorigin;
location / {
proxy_pass http://localhost:5000/;