Skip to content
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

Cross Origin Assets not loading on Playground via AJAX #3712

Open
jtbaker opened this issue Feb 6, 2025 · 1 comment
Open

Cross Origin Assets not loading on Playground via AJAX #3712

jtbaker opened this issue Feb 6, 2025 · 1 comment
Labels
bug Something isn't working upstream

Comments

@jtbaker
Copy link

jtbaker commented Feb 6, 2025

Describe the bug

I'm not sure that this is actually a bug, but it does seem like a nice thing to be able to do. Most mapping SDKs load mercator tiles with AJAX from servers on other domains. I think due to the CSP on the playground page, it is preventing any of those assets from being loaded due to them being cross origin.

Example (watch network tab): https://marimo.app/?slug=l1ny4w
Working version of the same package in their docs. https://python-visualization.github.io/folium/latest/getting_started.html

Environment

Exhibits on Playground (link attached above).

Code to reproduce

No response

@jtbaker jtbaker added the bug Something isn't working label Feb 6, 2025
@mscolnick
Copy link
Contributor

Yea, this is not actually a bug per-say. It is a CORS issue, with cross-origin-resource-policy:, which we enable for some wasm features. If you own the server, you can change the CORS hearers to be more lenient and allow requests from other sites.

If you don't own the server, we do host a corsproxy which you can use (but people would recommend to not pass sensitive data through it). https://corsproxy.marimo.app/<url>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

2 participants