Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Other No "Access-Control-Origin-Header" is present

Discussion in 'Multiplayer' started by CineTek, Jun 23, 2015.

Thread Status:
Not open for further replies.
  1. CineTek

    CineTek

    Joined:
    Jul 12, 2013
    Posts:
    98
    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?
     
  2. ThirdPartition

    ThirdPartition

    Joined:
    Mar 5, 2019
    Posts:
    5
    Did you ever figure out a solution to this?
     
  3. CodeNinja-

    CodeNinja-

    Unity Technologies

    Joined:
    Feb 22, 2023
    Posts:
    27
Thread Status:
Not open for further replies.