On the very first attempt to load a data file from the streamingAssetsPath (i.e. I upload a new build to itch, and the VERY first time I run that build), on a Unity webGL build, on itch, I see a 403 error. Reloading the page, and running the game again, everything works fine and requests to load the data file via UnityWebRequest work as expected. Running this NOT on itch, everything works fine. Has anyone else seen a similar case? Any suggestions to solve this? Here's a snippet of code that I use:
string path = Path.Combine(Application.streamingAssetsPath, "datafile"); if (path.Contains("://") || path.Contains(":///")) { UnityWebRequest www = UnityWebRequest.Get(path); yield return www.SendWebRequest(); // ... other error handling and sundry code here }