CORS, Cookies, Unity and WebGL Builds
In a previous blog post [https://blog.kongregate.com/unity-html5-cors-and-you/] I discussed how to get basic cross-origin requests working for your Unity WebGL project. This post is meant as a quick follow-up to cover another tricky problem that may come up when attempting to host your Unity WebGL game on Kongregate: cookie-based session authentication. The Problem Let's say you have a backend API that uses cookies for session management. Your game works great when testing on your own domain, b