- Home /
WebGL and Access-Control-Allow-Origin
Hi all, i'm New in Unity and WebGL.
I have this problem, when i Use WWW class for get a JSON or a simple Image:
WWW wwwBase = new WWW(url);
And then export to WebGL i receive this error:
XMLHttpRequest cannot load - No 'Access-Control-Allow-Origin' header is present on the requested resource
What can I do?
sorry for my english.-
Answer by Graham-Dunnett · Nov 10, 2014 at 09:05 PM
If the url
you are trying to access differs from the url where your game is hosted, you'll need cross-origin resource sharing. Maybe read-up on this here:
Your answer
Follow this Question
Related Questions
WebGL Redirect 0 Answers
WebGL embed in asp.net mvc 2 Answers
Is there any limitations to deserializing json on webgl? 0 Answers
json webGL no work Unity 2018.3.3f1 0 Answers
How To Separate Json Parameter Function to get values i need ? 0 Answers