Append Header to Web Interface

For discussion of the Poker Mavens server module and other administration topics
Post Reply
behr00z
Posts: 3
Joined: Wed Jan 28, 2015 5:34 am

Append Header to Web Interface

Post 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?
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Append Header to Web Interface

Post by Kent Briggs »

What exactly are you trying to accomplish?
behr00z
Posts: 3
Joined: Wed Jan 28, 2015 5:34 am

Re: Append Header to Web Interface

Post 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.
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Append Header to Web Interface

Post 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?
behr00z
Posts: 3
Joined: Wed Jan 28, 2015 5:34 am

Re: Append Header to Web Interface

Post 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
Post Reply