Relative Content

Tag Archive for nginxcors

Can’t determine the source of a CORS error

I have an Angular app whose build I am trying to run on an nginx docker container accessible at http://localhost:4001/. All 4001 resources load correctly, but the javascript bundle makes an xhr request to https:localhost:5001/foo/bar (note port and scheme change) that is blocked by firefox (“CORS failed”): a dotnet core app hosted in another docker container.