Answer the question
In order to leave comments, you need to log in
Why does x-requested-with block selectively on CORS requests?
There is a page on one server that makes an ajax request to another server via ajax (jquery).
One of the users is getting an error in Chrome (it works for everyone else):
Access to XMLHttpRequest at 'api-new.example' from origin 'api.example' has been blocked by CORS policy:Request header filed x-requested-with is not allowed by Access-Control-Allow-Headers in preflight response
Allowed headers on the server where we are knocking
Access-Control-Allow-Headers - Authorization,x-app-instance-id
___
Can you tell me which way to look?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question