I am trying to update an Angular library to make it IE11 compliant.
The main problem that I'm facing is that all of the requests that the app makes to our backend fail in IE11. For chrome/firefox this issue is not present.
Here is what I see in the IE dev tools:
SEC7123: Request header content-type was not present in the Access-Control-Allow-Headers list.
SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.
[object Object][object Object]
> message: "Http failure response for https://<redacted-url>/: 0 Unknown Error"
Is this a problem related to the server configuration or is there something I can change from the front-end?
Please let me know if there is something else I can add to help find the issue.
Also, I should note that the backend and the front-end are NOT on the same domain . (And this can't be changed)
Fixed with a server-side change. Apparently IE doesn't like the line:
Access-Control-Allow-Headers: '*'
The headers must be explicited one by one.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.