Every HTTP request is sent twice after refresh or return to Home Page but I call just one time my requests and components.
Asked
Active
Viewed 295 times
1 Answers
0
Maybe is caused by CORS
This type of request is called Preflighted requests that corresponds to a negotiation between the caller and the Web application based on HTTP headers.
It consists of two phases:
The browser executes an OPTIONS request with the same URL as the target request to check that it has the rights to execute the request. This OPTIONS request returns headers that identify what is possible to do for the URL.
If rights match, the browser executes the request.
image taken from HERE
See my other answer

JuanDM
- 1,250
- 10
- 24