D
D
dicem2021-01-07 23:08:15
CORS
dicem, 2021-01-07 23:08:15

Is it possible to ignore CORS for debug purposes?

I make a web application on nuxt, debug on a local machine, and of course, when I send requests from a local machine, it gives me

Access to XMLHttpRequest at '***API URL***' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

However, when I pass the same request through restman, everything is OK, so the question arose, is it possible to ignore CORS in some way for debugging purposes, as RestMan does?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OCTAGRAM, 2021-01-13
@OCTAGRAM

Maybe just allow localhost on the server?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question