New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORS error when trying to embed the dashboard into a React application #20425
Comments
I see a similar behavior when trying to download a dashboard as image, when external images are included. I was not able to workaround that by using |
Facing same issue, is there a fix for this yet? |
I have the same problem! |
and origins add your url but we have problem with api guest token |
encountering same issue using the CDN package. |
I followed @amjedsaleel 's approach and was able to get |
@dakshinasd Not sure if you are still having trouble with this, but I just had the same problem myself. My CORS settings allowed me to retrieve the |
Jesus Christ I have been trying to figure out what's wrong for quite a lot of hours. |
CC @michael-s-molina @dpgaspar - I remember there was some discussion a while back about trailing slashes and their (potential) optionality... here's a problem case :) |
I have followed the instructions in superset documentation to setup a local superset server using docker
In order to override configuration settings locally, I made a copy of ./docker/pythonpath_dev/superset_config_local.example into ./docker/pythonpath_dev/superset_config_docker.py (git ignored) and filled in my overrides.
These are my required overrides in superset_config_docker.py:
Frontend Code for embedding dashboard:
<iframe src={embedDashboard}></iframe>
These new configuration settings aren't being picked up by superset/config.py and hence the CORS issue.
How to reproduce the bug
Expected results
login is successful without any CORS error
Actual results
login is failing due to CORS error
Access to XMLHttpRequest at 'http://localhost:8088/api/v1/security/login' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Screenshots
Environment
(please complete the following information):
1.5.1
python --3.8.10
node -v10.19.0
Checklist
Make sure to follow these steps before submitting your issue - thank you!
The text was updated successfully, but these errors were encountered: