Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics

How to set CORS policy on my server

A topic by DanieleSuppo created 20 days ago Views: 30
Viewing posts 1 to 2

Hello! I'm really a newby on, and generally speaking on server side.

I've developed a Unity WebGL application that read some files from my server (

I've uploaded this app on my server, and it work fine. Now I'd like to be able to embed it on some web pages, through iFrame, so I've registered on and I've uploaded my app here.

The problem is that running the app from, when the app try to load the files from my server I get the error message ".... has been blocked by CORS policy: no 'Access-Control-Allow-Origin' header is present on the requested resource".

I've googled a bit, and I've added this line on  .htacces on my server:

<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"

But unfortunately does not work, I keep getting the same error message.

Please could you suggest me a way to solve this issue?

Many thanks!

Moderator moved this topic to General Development