mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
fix: disable strict SSL for CSRF protection in the application configuration
This commit is contained in:
parent
cacab54225
commit
56432f62c4
1 changed files with 1 additions and 1 deletions
|
|
@ -99,6 +99,7 @@ with app.app_context():
|
|||
sess.init_app(app)
|
||||
|
||||
# CSRF protection
|
||||
app.config["WTF_CSRF_SSL_STRICT"] = False
|
||||
csrf = CSRFProtect()
|
||||
csrf.init_app(app)
|
||||
|
||||
|
|
@ -333,7 +334,6 @@ def before_request():
|
|||
app.config["SESSION_COOKIE_SECURE"] = False
|
||||
app.config["REMEMBER_COOKIE_NAME"] = "bw_ui_remember_token"
|
||||
app.config["REMEMBER_COOKIE_SECURE"] = False
|
||||
app.config["WTF_CSRF_SSL_STRICT"] = False
|
||||
|
||||
app.config["SCRIPT_NONCE"] = token_urlsafe(32)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue