GitHub user JishnuJsm created a discussion: CSRF Token failing OR Dashboard 
Import failing

The first issue was api returned=> "Request failed with status code 401" when I 
tried to get csrf token.

I was running a Superset instance on an IP address and created a proxy using 
NGINX, which will provide access to the same superset instance on a domain.

This CSRF token issue arises on the domain API call only, so I have checked and 
added ENABLE_PROXY_FIX = True in superset_config. The no csrf token issue has 
been solved, and now the csrf token fetching is working on both IP and domain.

But I was having an issue on another endpoint /api/v1/dashboard/import, when I 
call this API with the csrf token and proper form fields still returns login 
page HTML and dashboard was not imported.

help me solve this

GitHub link: https://github.com/apache/superset/discussions/34504

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


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

Reply via email to