GitHub user Mathews-Gigi added a comment to the discussion: Custom "Download Raw Data" button for dashboards/charts using the underlying dataset
@dosu we initially tried the " /datasource/samples " endpoint because it is the endpoint we observed being called by Superset when viewing the datasource data. However, when calling it from our ASP.NET backend, Superset returns 400 β βThe CSRF token is missing.β Since this endpoint requires the Superset web-session/CSRF mechanism, we moved to the official POST /api/v1/chart/data API and used the existing embedded Guest Token as a Bearer token. With /api/v1/chart/data, the CSRF issue is avoided, but we now receive 403 β datasource permission denied . Could someone clarify why "/datasource/samples" requires a CSRF token when called from the backend, what the correct way to obtain/provide that CSRF token would be if we should use this endpoint, and how Guest Token permissions should be configured so that /api/v1/chart/data can access the same datasource that is already accessible through the embedded dashboard? GitHub link: https://github.com/apache/superset/discussions/42886#discussioncomment-17952398 ---- 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]
