Hi,
I'm trying to access the contents of the iframe in html game interface,
but a header called "Access-Control-Allow-Origin" must be set in game interface. it wont be a security risk, because it can be set for a specific domain.
is there any way to do it?
Append Header to Web Interface
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Append Header to Web Interface
What exactly are you trying to accomplish?
Re: Append Header to Web Interface
what im trying to do is accessing the iframe elements with javascript, and customize the css style.
maven doesn't come with such preferences for stylesheet of the game lobby and table. so i want to customize it as i want.
if there is any other way to do so, ill gladly pay for it.
maven doesn't come with such preferences for stylesheet of the game lobby and table. so i want to customize it as i want.
if there is any other way to do so, ill gladly pay for it.
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Append Header to Web Interface
From what I understand, the Access-Control-Allow-Origin is to let javascript on one domain access another domain. Why don't you just run your code on the same domain, why do you need a cross domain capability?
Re: Append Header to Web Interface
it's the same domain but the port is different. that's why it doesn't allow that.
maven uses 8087 port, but my custom web client uses 8080
maven uses 8087 port, but my custom web client uses 8080