mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
[api] enable CSRF by default (#9205)
* [api] Fix, don't exempt CSRF on APIs * adds cookie based CSRF token support * blacking Co-authored-by: ʈᵃᵢ <tdupreetan@gmail.com>
This commit is contained in:
committed by
GitHub
parent
28c05b22e8
commit
26e916e46b
@@ -63,6 +63,7 @@ class BaseSupersetModelRestApi(ModelRestApi):
|
||||
Extends FAB's ModelResApi to implement specific superset generic functionality
|
||||
"""
|
||||
|
||||
csrf_exempt = False
|
||||
method_permission_name = {
|
||||
"get_list": "list",
|
||||
"get": "show",
|
||||
|
||||
Reference in New Issue
Block a user