Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics

Can I set CORS to my subdomain?

A topic by Arknostik created Aug 18, 2017 Views: 302 Replies: 4
Viewing posts 1 to 2

Can I set a CORS limit to only my Subdomain? Is that possible?


Are you trying to make authenticated requests to the domain? That isn't allowed. Could you tell me what you're trying to accomplish?


I've created a webserver that handles http from a game I have in 

I was trying to enable CORS to only allow requests from my subdomain, like


I think you have it backwards, it doesn't make sense to add CORS to since you wouldn't be making requests there. We don't have a server running on our domain that would know how to respond to your request. If you want to have your game communicate with your own domain you would want to add CORS to your domain


It is true, I really had it in the wrong way. I'm kinda new with theses things! Thanks for the replies, I did make it work after understanding how all of this works!

Thanks, leafo!