G
G
Georgy Kuznetsov2022-01-18 13:16:31
CORS
Georgy Kuznetsov, 2022-01-18 13:16:31

Will CORS prevent getting data from the server?

Let's say there is a server that has CORS configured, if you just use the FETCH API in the application (as in this example https://code.tutsplus.com/en/tutorials/fetching-da... ), will it prevent you from doing request and successfully display the data on the page, or do you need to know something else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2022-01-18
@JoeSmith3100

It depends on how CORS is configured and on which domain the site is located on react.
If the front domain is registered in CORS, then there will be no problems.
Or if CORS is the same site and the front is on the same domain.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question