From 2d7b038577fd3fd52ebff6e20e7761d4c01b1dad Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 10 Dec 2021 22:08:17 +0200 Subject: [PATCH] dsfds --- files/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index 816ecfb11..fb6c44613 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -122,11 +122,11 @@ def teardown_request(error): @app.after_request def after_request(response): - if session.get("favorite_emojis"): del session["favorite_emojis"] response.headers.add("Strict-Transport-Security", "max-age=31536000") + response.headers.add("Referrer-Policy", "same-origin") response.headers.add("X-Frame-Options", "deny") - response.headers.add("Content-Security-Policy", "script-src 'self' 'unsafe-inline' 'unsafe-eval' ajax.cloudflare.com; connect-src 'self' tls-use1.fpapi.io api.fpjs.io 02ddcc80-b8db-42be-9022-44c546b4dce6.pushnotifications.pusher.com; object-src 'none';") return response + from files.routes import * \ No newline at end of file