Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Facebook WebGL WWW Unknown Error.

Discussion in 'WebGL' started by ctalk, May 29, 2017.

  1. ctalk

    ctalk

    Joined:
    Apr 21, 2017
    Posts:
    12
    Hi, I have a game deployed on facebook that uses WWW to get data from a python script hosted on AWS. I have setup CORS in the header response but still getting "Unknown error." response in www.error. Still haven't been able to find a fix. What else can cause this issue? Cheers!
     
    Last edited: May 29, 2017
  2. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    Try posting both, the url of the request, and the link to your game on facebook here, then someone could take a look.
     
  3. ctalk

    ctalk

    Joined:
    Apr 21, 2017
    Posts:
    12
  4. ctalk

    ctalk

    Joined:
    Apr 21, 2017
    Posts:
    12
    So It appears that custom header weren't allowed on the server end. Which has been fixed. Now another error I am getting is. When fetching a file from server, I am getting this

    The Same Origin Policy disallows reading the remote resource at https://dev.mydummygame.com/get/game.db
    (Reason: CORS header ‘Access-Control-Allow-Origin’ missing)

    even though the value of Access-Control-Allow-Origin is set to *
    has this something to do with subdomains? It's been like 2 weeks and i am still unable to fix this issue :(
     
  5. surits14

    surits14

    Joined:
    Jan 22, 2018
    Posts:
    22
    How did you fix this issue?