-1

Create dataset API(/api/v1/dataset/) giving error '400 Bad Request: The CSRF session token is missing.' when i am trying using postman but it is working fine when i create the same from superset UI.Can anyone suggest the solution for this issue.

http://127.0.0.1:8088/api/v1/dataset/

request: { "database": 3, "schema": "nrpexamqa", "table_name": "qti_test" } enter image description here

Thanks,

Kamal
  • 2,384
  • 1
  • 13
  • 25

1 Answers1

1

First you need to get the Bearer Token as shown below:

[Bearer Token Request] [1]: https://i.stack.imgur.com/mYV4V.png

Given the Bearer Token it should be used in the following request, in order to get the csrf_token, with :

[CSRF Token Request] [1]: https://i.stack.imgur.com/gxla5.png

otrym
  • 21
  • 2