Ask Your Question
1

What is the solution for correcting the Axios CORS error that prohibits multiple origins?

asked 2021-06-09 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-07-29 12:00:00 +0000

devzero gravatar image

There are several solutions to correct the Axios CORS error that prohibits multiple origins:

  1. Add the desired origins to the Access-Control-Allow-Origin header of the server-side response.

  2. Use a reverse proxy server like nginx or Apache to forward requests to the server with the correct headers.

  3. Use a CORS proxy like CORS Anywhere to send requests through a different domain to avoid the CORS issue.

  4. Use JSONP or a similar technique to bypass the CORS restriction.

  5. Modify the browser's security settings to allow requests from different origins.

  6. Use a different API that doesn't have the CORS restriction.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-06-09 11:00:00 +0000

Seen: 11 times

Last updated: Jul 29 '21