-
-
Notifications
You must be signed in to change notification settings - Fork 180
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 problem with code splitting #1194
Comments
And some times it works. Which is very strange. Cloudfront was configured to send correct CORS header |
CORS is controlled server-side, so there is no setting in shadow-cljs regarding this. Need more information about the setup in case there are other maybe-related things going wrong. |
Hmm, what type of details I can provide? |
I cannot help you debug your server-side issues, so random things you'll have to sort out yourself. As I said the server is solely responsible for CORS headers, the client does absolutely nothing beyong requesting the files. The only thing I can comment on is your build config and the code loading the actual chunks. The default loader code has some weird retry logic if a chunk failed to load, but it doesn't introduce any randomness. IMHO nowadays See https://clojureverse.org/t/generating-es-modules-browser-deno/6116 |
I'm storing all application modules which shadow-cljs bult on CDN (in my case it's AWS CloudFront).
When application is trying to lazy load chunk I have a cors problem
The text was updated successfully, but these errors were encountered: