Search Unity

Game does not do anything using public folder

Discussion in 'Web' started by Sir_Moodz, Mar 13, 2018.

  1. Sir_Moodz

    Sir_Moodz

    Joined:
    Oct 2, 2017
    Posts:
    2
    I am using the public folder of pCloud to store my build folder but when I add the html it does not run. I am using a website of Wix or sitey.
    Any logo's and icons are loading. The unityweb files are set to application / octet-stream and the .js to application / javascript.
    I changed the paths in the index to the public folder.

    At this point I don't know what else could be wrong.
     
  2. roka

    roka

    Joined:
    Sep 12, 2010
    Posts:
    598
    Maybe you can share the link of your page?
     
  3. Sir_Moodz

    Sir_Moodz

    Joined:
    Oct 2, 2017
    Posts:
    2
    Last edited: Mar 13, 2018
  4. roka

    roka

    Joined:
    Sep 12, 2010
    Posts:
    598
    I don't know how you host your game but :

    From http://www.promoconcepts.be/gametest , we can see on the console :

    This page : http://www-promoconcepts-be.filesusr.com/html/5f82d0_258e9c6b7e097655726432be14ae033a.html
    Give us the same error.

    We can see your content here https://filedn.com/lGk9pKKzWtySTkrIvuN7CEj/ , so first, try to upload you index.html also on your pCloud and try https://filedn.com/lGk9pKKzWtySTkrIvuN7CEj/index.htm in a first time.
     
  5. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,038
    It's cross-domain scripting protection kicking in. You might find some solutions if you search for those keywords. Basically the aforementioned header needs to be present, perhaps multiple times, to whitelist other domains for your scripts/data/cookies.