The code makes the request to the service only once:
however the service is called twice by the WEB page, the first time with Request Method: OPTIONS (with empty response) and the second time with Request Method: GET (with the response of the service);
Why is the query performed twice? Depends on the sicronía? It is required that it only be executed once. The service is as follows: