-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 Resource Policy with Parcel nightly build version (local env) #6561
Comments
You can do what #6499 (comment) describes, to override/unset these headers. |
@mischnic : thanks for the response, i am just curious why we should do that. It's not happened in previous version. and the issue depends on different image source. |
Things like |
I did not get that. How could I apply proxy without backend server. I am using react with parcel. |
If you add a |
You can use a proxyrc to undo this recent change we did in Parcel. Sorry for hitting the close button accidentally... |
This worked for me now. Added .proxyrc.js
|
Thank you @barisbikmaz it works for me as well 👍🏻
|
After a solid few hours of searching and thinking it was something over on my cloudfront distribution settings or s3 bucket policy... I finally found this! I recently upgraded from parcel 1 to parcel |
Same workaround works for me! |
I don't understand why Parcel is making COOP/COEP a default behavior when 99% of the web doesn't use features like The COOP/COEP are opt-in headers so why does Parcel make that opt-in, a opt-out ? One thing you could do if you want to make it a default behavior is detect the use of those features in the code and then apply the COOP/COEP headers just like Parcel already does with service workers or webworkers's usage of their register function In the worst case, users that actually want COOP/COEP will have to set their (I am actually one of those that will want and use COOP/COEP for some of my projects to unlock that nice |
Another voice here saying how unhappy I am to have to add yet another config file to my repo to avoid CORS issue :( |
This has been reverted (in the nightly versions): #6789 |
I confirm that the problem is not present anymore on 2.0.0-nightly.845. Thank you @mischnic 🎉 |
🐛 bug report
Having an <img tag include external src causes the CORS issue.
🤔 Expected Behavior
😯 Current Behavior
💁 Possible Solution
added crossOrigin to img tag
🔦 Context
💻 Code Sample
🌍 Your Environment
Parcel nightly version 2.0.0-nightly.753 | local server.
The text was updated successfully, but these errors were encountered: