Skip to content

Commit

Permalink
fix: csrf check
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Mar 2, 2024
1 parent abe4bb3 commit 24e08fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,5 @@ dmypy.json
development.db

.idea/

hiddify_usages.json
2 changes: 1 addition & 1 deletion hiddifypanel/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_locale():
commercial.init_app(app)

app.config.update(config) # Override with passed config
app.config['WTF_CSRF_CHECK_DEFAULT'] = False
# app.config['WTF_CSRF_CHECK_DEFAULT'] = False

# app.config['BABEL_TRANSLATION_DIRECTORIES'] = '/workspace/Hiddify-Server/hiddify-panel/src/translations.i18n'

Expand Down

0 comments on commit 24e08fa

Please sign in to comment.