fds
This commit is contained in:
parent
94f8c8138c
commit
a61e54881a
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,6 @@ import faulthandler
|
||||||
import atexit
|
import atexit
|
||||||
|
|
||||||
app = Flask(__name__, template_folder='templates')
|
app = Flask(__name__, template_folder='templates')
|
||||||
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=2)
|
|
||||||
app.url_map.strict_slashes = False
|
app.url_map.strict_slashes = False
|
||||||
app.jinja_env.cache = {}
|
app.jinja_env.cache = {}
|
||||||
app.jinja_env.auto_reload = True
|
app.jinja_env.auto_reload = True
|
||||||
|
@ -108,6 +107,7 @@ def after_request(response):
|
||||||
|
|
||||||
print('first: ' + request.access_route[0])
|
print('first: ' + request.access_route[0])
|
||||||
print('second: ' + request.remote_addr)
|
print('second: ' + request.remote_addr)
|
||||||
|
print('third: ' + request.headers['True-Client-IP'])
|
||||||
|
|
||||||
response.headers.add("Strict-Transport-Security", "max-age=31536000")
|
response.headers.add("Strict-Transport-Security", "max-age=31536000")
|
||||||
response.headers.add("X-Frame-Options", "deny")
|
response.headers.add("X-Frame-Options", "deny")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue