Open jpchev opened 1 day ago
Hey @jpchev! 👋 I'm here to help you out with your bug report!
I found some similar discussions and issues related to embedding dashboards and encountering errors:
Additionally, there was a closed issue that might be relevant:
Regarding your specific issue with the 404 error when accessing datasets via API in embedded dashboards, it might be related to authentication or permissions. Ensure that the Guest Token used in the embedded scenario has the necessary permissions to access the dataset. The Superset UI might be using a session-based authentication, which could explain why it works there but not in the embedded iframe. You might need to verify the permissions associated with the Guest Token or check if there are any specific configurations required for cross filters in embedded dashboards, although I couldn't find specific documentation on that [1][2][3][4].
To continue talking to Dosu, mention @dosu.
this seems indeed a problem with permissions, because the issue disappears after changing GUEST_ROLE_NAME = 'Gamma' to GUEST_ROLE_NAME = 'Admin' to the config.py file
but now I have a CSRF 400 issue. Anyway, what are the missing permissions to make the role Gamma work, instead of switching to Admin?
To resolve the issue with the 'Gamma' role not having sufficient permissions, you need to ensure that the role has the necessary permissions to access the datasets and perform the required actions. Here are some permissions that might be missing for the 'Gamma' role:
Dataset and Database Access:
can read on Dataset
and can read on Database
.Cross-Filter and API Access:
Additional Permissions:
can explore on Superset
or can explore_json on Superset
if they are required for the cross-filter functionality.Guest Token Permissions:
To avoid the CSRF 400 issue, ensure that the CSRF token is correctly configured and included in your requests. You can also configure certain endpoints to be exempt from CSRF protection by adding them to the WTF_CSRF_EXEMPT_LIST
in the configuration [1][2].
By adjusting these permissions, you should be able to use the 'Gamma' role effectively without switching to 'Admin'.
To continue talking to Dosu, mention @dosu.
Bug description
Hello, I can integrate a dashboard in my UI via the iframe provided with the embedded sdk, but cross filters don't work, in particular I can't drill down and drill by in a pie chart. I see a 404 error when calling the call to the api /api/v1/dataset/1 whereas the same call works when browsing the same dashboard in the Apache Superset UI.
Here the call getting a 404 from the iframe, saved as a curl command
and here I report the same call working in Apache Superset
can you please look into this ?
Screenshots/recordings
No response
Superset version
4.0.2
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist