Page 1 of 1

Append Header to Web Interface

Posted: Wed Jan 28, 2015 5:50 am
by behr00z
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?

Re: Append Header to Web Interface

Posted: Wed Jan 28, 2015 11:12 am
by Kent Briggs
What exactly are you trying to accomplish?

Re: Append Header to Web Interface

Posted: Thu Jan 29, 2015 12:19 am
by behr00z
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.

Re: Append Header to Web Interface

Posted: Thu Jan 29, 2015 12:56 am
by Kent Briggs
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

Posted: Thu Jan 29, 2015 5:44 am
by behr00z
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