We are working in the cloud, with Azure, where we have 3 segments: one for front (angular) one for back (java) and the last one for data. Currently, we are facing an issue that didn’t let us connect the angular with java code. We are having a CORS validation for the Angular app and Rest services communication. This issue is only happening in the cloud but not in our local setup.
Error message:
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://crecemasbcpdesa.lima.bcp.com.pe' is therefore not allowed access. The response had HTTP status code 504.