fd
This commit is contained in:
parent
b89f416355
commit
9445cf8a29
1 changed files with 1 additions and 7 deletions
|
@ -256,10 +256,4 @@ def after_request(response):
|
|||
response.headers.add("Feature-Policy", "geolocation 'none'; midi 'none'; notifications 'none'; push 'none'; sync-xhr 'none'; microphone 'none'; camera 'none'; magnetometer 'none'; gyroscope 'none'; vibrate 'none'; fullscreen 'none'; payment 'none';")
|
||||
response.headers.add("X-Frame-Options", "deny")
|
||||
|
||||
return response
|
||||
|
||||
|
||||
@app.route("/<path:path>", subdomain="www")
|
||||
def www_redirect(path):
|
||||
|
||||
return redirect(f"https://{app.config['SERVER_NAME']}/{path}")
|
||||
return response
|
Loading…
Add table
Add a link
Reference in a new issue