I made a multiplayer game using Unity and exporting it with WebGL I've ran into an issue. Requests to my remote server blocked by Cors in browser.
access to fetch at 'https://myhost/launch' from origin 'http://localhost:63159' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
When game is exported with desktop profile it works just as intended.I also launched chrome with no cors and it worked so issue is not on the server.Solutions I find on the internet are server-sided. I have access to the server but this issue seems to come from browser side not from server side.