mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
Adding hook for CSRF exempting flask views. (#3435)
This commit is contained in:
committed by
Maxime Beauchemin
parent
32bd827b25
commit
e22aecb0d1
@@ -157,6 +157,8 @@ of the parameters you can copy / paste in that configuration module: ::
|
||||
|
||||
# Flask-WTF flag for CSRF
|
||||
WTF_CSRF_ENABLED = True
|
||||
# Add endpoints that need to be exempt from CSRF protection
|
||||
WTF_CSRF_EXEMPT_LIST = []
|
||||
|
||||
# Set this API key to enable Mapbox visualizations
|
||||
MAPBOX_API_KEY = ''
|
||||
@@ -172,6 +174,11 @@ Please make sure to change:
|
||||
* *SQLALCHEMY_DATABASE_URI*, by default it is stored at *~/.superset/superset.db*
|
||||
* *SECRET_KEY*, to a long random string
|
||||
|
||||
In case you need to exempt endpoints from CSRF, e.g. you are running a custom
|
||||
auth postback endpoint, you can add them to *WTF_CSRF_EXEMPT_LIST*
|
||||
|
||||
WTF_CSRF_EXEMPT_LIST = ['']
|
||||
|
||||
Database dependencies
|
||||
---------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user