Fix CSRF token issue on login

This commit is contained in:
2025-11-22 15:13:33 +08:00
parent 36c08b0ac1
commit 9064f9d60e
2 changed files with 23 additions and 4 deletions

View File

@@ -81,6 +81,11 @@ def create_app(
app.extensions["connections"] = connections
app.extensions["replication"] = replication
@app.after_request
def set_server_header(response):
response.headers["Server"] = "MyFSIO"
return response
@app.errorhandler(500)
def internal_error(error):
return render_template('500.html'), 500