youngsol commented on issue #16398:
URL: https://github.com/apache/superset/issues/16398#issuecomment-914257339


   solution: use requests.session not just request.get/post/put (well get is ok)
   ```
   session = request.Session()
   session.get(CSRF TOKEN)
   session.post(CREATE DATABASE, headers = {BEARER,X-CSRFTOKEN})
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to