mercredi 2 septembre 2020

CORS policy error: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed

I have the error of the CORS policy after the query. Full error message:

Access to XMLHttpRequest at '...my-remote-api-url' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed.

I think the problem is in the remote server but I don't have access to the server. Other developers on their computers are not getting this error.

Headers of query:

Request




Aucun commentaire:

Enregistrer un commentaire