mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
[hotfix] add csrf_token api endpoint
This commit is contained in:
parent
66bff01b45
commit
50a9e13f9b
@ -1400,6 +1400,15 @@ class Superset(BaseSupersetView):
|
||||
return json_success(
|
||||
json.dumps(payload, default=utils.json_int_dttm_ser))
|
||||
|
||||
@api
|
||||
@has_access_api
|
||||
@expose("/csrf_token/", methods=['GET'])
|
||||
def csrf_token(self):
|
||||
return Response(
|
||||
self.render_template('superset/csrf_token.json'),
|
||||
mimetype='text/json',
|
||||
)
|
||||
|
||||
@api
|
||||
@has_access_api
|
||||
@expose("/fave_dashboards/<user_id>/", methods=['GET'])
|
||||
|
Loading…
Reference in New Issue
Block a user