Access-Control-Allow-Origin in different environments

1

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.

    
asked by anonymous 01.06.2017 / 17:28

0 answers