Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Unity Multiplayer No "Access-Control-Origin-Header" is present

Discussion in 'Connected Games' started by CineTek, Jun 23, 2015.

  1. CineTek

    CineTek

    Joined:
    Jul 12, 2013
    Posts:
    33
    Hey,

    I was trying to make a WebGL build with the HLAPI of Unet but got this error in the javascript console when I was trying to create a new match through the NetworkManager GUI:

    "XMLHttpRequest cannot load https://mm.unet.unity3d.com/json/reply/CreateMatchRequest. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'xxxxx' is therefore not allowed access."

    So does that mean that it is not possible to use the built-in matchmaker functionality in WebGL builds since it requires to setup a specific CORS header at Unitys servers?
     
unityunity