After i added " WEBSOCKET: 'true' " the signalR requests of my project are working but the REST HTTP Requests stopped working because of CORS. The inverse is true if I remove the line, signalR stops working (which is to be expected) but the other requests work flawlessly.
This is my docker-compose.yml:
Basically, I've found that every request that has the [Authorize] tag fails on CORS when using the WEBSOCKET: 'true' line in docker-compose.yml
After i added " WEBSOCKET: 'true' " the signalR requests of my project are working but the REST HTTP Requests stopped working because of CORS. The inverse is true if I remove the line, signalR stops working (which is to be expected) but the other requests work flawlessly.
This is my docker-compose.yml:
Basically, I've found that every request that has the [Authorize] tag fails on CORS when using the WEBSOCKET: 'true' line in docker-compose.yml
` version: '2' services: app: build: context: ./ dockerfile: Dockerfile https-portal: image: steveltn/https-portal:1 ports:
Also, if I run the project using "dotnet run" everything works as expected, so I think there is a problem with my docker configuration.
Any ideas?