V
V
Vlad _2020-10-26 02:49:51
JavaScript
Vlad _, 2020-10-26 02:49:51

How to enable CORS in asp.net core?

I enabled CORS on the asp.net core server, but it still does not want to process requests from my browser, but everything works fine in Postman
Maybe someone has encountered a similar problem and knows its solutions, please help I have been suffering with this problem for 2 days

5f960e7d3711f534214735.png
5f960eb773542964218184.png
5f960ebfe0508277305996.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2020-10-26
@SimonMiler

Redirect is not allowed for a preflight request.

Probably the problem is that you are returning a redirect.
You can first try adding / at the end of the address,
and if it doesn’t help, look at the Network tab and find out where it redirects you and why.
Another option is that you are accessing http, and the service will redirect you to https

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question