-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
IE11 Cors #62
Comments
Hi @ssolders, I created a quick demo to test the issue you describe. Everything works as expected in IE11: the ponyfill is able to retrieve CSS data via a CORS request to My generic advise would be:
More specifically, a little Google-fu returned a number of results related to IE10/11 CORS failures caused by the missing Hope this helps! |
Thank you for your response and the suggestions! |
Hey again, @ssolders. Closing this issue for now since this does not appear to be a ponyfill issue. If that turns out to not be the case, I'm happy to reopen this issue and discuss further. |
So we were finally able to work this out, by mimicking how the bootstrap-cdn did it in the jsbin-example you provided. We're using Cloudfront in AWS, and the problem occured when Cloudfront didn't receive an origin, something IE11/10 doesn't add for some reason. It did not help to set it in the onBeforeSend-hook. We resolved it by adding a proxy between Cloudfront and Amazon S3 that manually adds an origin if it's missing. CORS-Standard says that access-control-allow-origin: * should only be added when origin is present. AWS didn't have the setting to always send it even without origin, therefore the proxy in between was necessary. So: Not a problem with css-vars-ponyfill |
Who could have imagined it would be an IE-specific issue. 😉 Glad to hear you were able to work around it, and thanks for sharing the workaround. As you mention, hopefully it helps someone in the future. |
I was able to resolve my IE11 CORS issue by replacing |
Hi!
When we run the ponyfill on our deployed environment we get CORS-problems in IE11/IE10 on the CSS-files that are fetched using XmlHttpRequest by get-css-data.
If I emulate IE to run as version 9 the fix introduced in 16.4 kicks in and it works, meaning XDomainRequest works.
All the other assets work fine without cors-problems so it's not server-related + it works if we run without the ponyfill.
We've been able to see that the request is missing origin, adding the Origin-header in onBeforeSend works and is received by the server but the cors-problems still occur.
We can also make it work by adding our origin as a "Trusted site" in IE's security settings.
Any idea here?
The text was updated successfully, but these errors were encountered: