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

Exception for CORS #3759

Open
jrvjrv opened this issue Sep 13, 2024 · 0 comments
Open

Exception for CORS #3759

jrvjrv opened this issue Sep 13, 2024 · 0 comments

Comments

@jrvjrv
Copy link

jrvjrv commented Sep 13, 2024

In your page, https://javascript.info/cross-window-communication, an important CORS exception, to me at least, is that the protocol "file:" is always considered to be cross-domain. If you are writing javascript that has to work from a "file:" url, it can't access other local files directly (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSRequestNotHttp). You have to use cross-window messaging to talk into/out-of an iframe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant