I have a very strange problem: the same code works locally and in prod, but does not work in homolog.
Basically, the problem is homolog (soon at login) is this:
XMLHttpRequest can not load link . In 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' link ' is therefore not allowed access. The response had HTTP status 404.
We were having this problem in prod and we managed to solve it, however, when publishing in homolog, we found this problem again.
In the Startup of the publication, we allow all sources:
app.UseCors(CorsOptions.AllowAll);
This solved our local problem and prod, but continues with problems in homolog.
Our front is angular and we do not touch anything on how the requisitions were made.