(more) AJAX failed in Internet Explorer, but was successful in other browsers

Hello, seniors!

recently I encountered some puzzling problems in playing api, but I still couldn"t find a solution after climbing the article, so I sent a post to ask

.

when I load a web page, I trigger an api,api that brings xxx to the backend in headers, which displays normally in chrome, safari and firefox, but ejects problems in IE10. Version: IE10
error shows that xxx does not exist in access-control-allow-headers
but xxx is added to access-control-allow-headers in the backend

.

I use network to see that chrome, safari, and firefox all have two requests, one options, one get,
and IE only options

I use axios, to select ajax as follows

axios.get(URL, {
headers: {
"xxx": key
}
})
.then(function(res) {
// ...
})
.catch(function(error) {
// ...
})

kneel for a solution, thank you!


what system you are, IE10 is not supported above windows8.1. You can use fetch
clipboard.png


error to show that xxx does not exist in access-control-allow-headers
put in the xxx that prompts you, response.addHeader ("Access-Control-Allow-Headers", "xxx");

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bcdc5e-4513a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bcdc5e-4513a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?