master
Aevann1 2022-01-21 13:22:18 +02:00
parent b4f083b1a0
commit 9f59fce8cf
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,6 @@ import faulthandler
import atexit
app = Flask(__name__, template_folder='templates')
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=2)
app.url_map.strict_slashes = False
app.jinja_env.cache = {}
app.jinja_env.auto_reload = True
@ -108,6 +107,7 @@ def after_request(response):
print('first: ' + request.access_route[0])
print('second: ' + request.remote_addr)
print('third: ' + request.headers['True-Client-IP'])
response.headers.add("Strict-Transport-Security", "max-age=31536000")
response.headers.add("X-Frame-Options", "deny")