vendredi 25 décembre 2015

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '…' is therefore not allowed access

I am trying to publish a unity based game(WebGL) to a free hosting site. I am getting this error while opening the .html game file on firefox too (on Chrome also but chrome doesn't support unity now)

        XMLHttpRequest cannot load http://ift.tt/1HxLzXt. No 'Access-Control-Allow-Origin'
 header is present on the requested resource. 
    Origin 'http://ift.tt/1PntLE5' is therefore not allowed access.
        UnityLoader.js:1 Invoking error handler due to
        Uncaught unknown compression method

UnityLoader.js:1 Uncaught unknown compression method
UnityLoader.js:1 Invoking error handler due to
Uncaught incorrect header check

UnityLoader.js:1 Uncaught incorrect header check

UnityLoader.js:1 Invoking error handler due to
Uncaught incorrect header check

UnityLoader.js:1 Uncaught incorrect header check

Its a very simple game with no database access, no php stuff.

I've tried deleting the .htaccess file , adding additional code in .htaccess file as stated in this discussion http://ift.tt/1RKhvAG but the problem remains as it is.

I want to know if it is possible to load unity game on a free hosting site ? If yes then how to tackle this problem ?




Aucun commentaire:

Enregistrer un commentaire