-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling /api/v1/chart/data returns 400 "The CSRF session token is missing" #10354
Comments
Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details. |
Hi @saward Just merged a PR that will allow you to make request to |
Looks good thanks, will test soon. Wasn't sure myself exactly how with flask to make it exempt. |
Same issue, i am also facing like, when i try to make a post call to create dashboard response is 400 and says like The CSRF token is missing any help ?here |
@madhamanchiharsha what version of Superset are you on? |
0.38 is the version which i am using and also i am using it on my local @villebro |
Hi @villebro any update on this issue |
I have disabled csrf protection in config.py in superset like this ("WTF_CSRF_ENABLED = False") it is working now |
Is it secure to do this? |
disable csrf is never a recommended way to solve issue, only use if you are not going to deploy product |
Hi,
I'm trying to use the API with JWT. I have been able to successfully use some other endpoints (e.g., getting a list of charts) using this token for authentication. However, the /api/v1/chart/data endpoint, which shows up in the Swagger UI, returns an error. For example, using httpie:
I have the same issue when sending the data as "application/json" as well. Reading the Superset code, if I understand it right, I should be able to use either application/json or form submission with the form_data parameter.
Expected results
Receive a 200 reply with json body and data from search.
Actual results
400 received:
How to reproduce the bug
Environment
(please complete the following information):
superset version
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Superset 0.999.0dev
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
I'm running the 'edge' tag for the unofficial docker image at https://hub.docker.com/r/amancevice/superset/
python --version
3.6.11
node -v
N/A
npm -v
N/A
Checklist
Make sure these boxes are checked before submitting your issue - thank you!
The text was updated successfully, but these errors were encountered: