-
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
create dataset api always get 'The CSRF token is missing' error #17206
Comments
Here is a suggested solution. #10354 (comment) |
Thanks, WTF_CSRF_ENABLED = False works |
After I fixed this, I'm running into this error: |
Closing as the original issue is resolved. |
I did same thing but didn't worked WTF_CSRF_ENABLED = False and restart server |
A clear and concise description of what the bug is.
How to reproduce the bug
Go to swagger/v1 scroll down to post dataset
Click on 'Try it out'
Input following:
{ "database": 1, "owners": [ 1 ], "schema": "testschema", "table_name": "tenant002" }
See an error in the error log
{ "errors": [ { "message": "400 Bad Request: The CSRF token is missing.", "error_type": "GENERIC_BACKEND_ERROR", "level": "error", "extra": { "issue_codes": [ { "code": 1011, "message": "Issue 1011 - Superset encountered an unexpected error." } ] } } ] }
Expected results
get 200 without error
Environment
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
I'm using the Admin user, even after this error occurred the GET /dataset API still working.
The text was updated successfully, but these errors were encountered: