I made an Api with symfony, in which I define all the necessary headers. From Angular it is from where I consume the symfony api, the connection with my Api since angular is normal in all the requests, at no time I get an error by the CORS. The problem is that I have a part of the system that generates a large amount of bills, obviously makes certain heavy losses in my API and returns an answer. When generating the invoices in the system as they are more or less 2000 users, that therefore should generate 2000 invoices, to the minute and a half of executing the function of generating the invoices the error generates me:
Access to XMLHttpRequest at ' link ' from origin ' link ' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
What I do not really know because it happens, because my API is with all the required headers and in other less heavy requests it works correctly from Angular, and I also did the test locally and it works correctly generating the almost 2000 invoices, but doing that The same test already on the server does not allow me to generate all the invoices, it only generates a certain amount and at the minute and a half I get that error.
Hopefully you can help me and tell me why on my server does not let generate requests for a longer time, because generally all those bills are generated in 4 min, but my server cuts the execution and I vote the error of the CORS, thank you very much .