Append Header to Web Interface

For discussion of the Poker Mavens server module and other administration topics

Append Header to Web Interface

Postby behr00z » Wed Jan 28, 2015 5:50 am

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

Re: Append Header to Web Interface

Postby Kent Briggs » Wed Jan 28, 2015 11:12 am

What exactly are you trying to accomplish?
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3820
Joined: Wed Mar 19, 2008 8:47 pm

Re: Append Header to Web Interface

Postby behr00z » Thu Jan 29, 2015 12:19 am

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

Re: Append Header to Web Interface

Postby Kent Briggs » Thu Jan 29, 2015 12:56 am

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?
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3820
Joined: Wed Mar 19, 2008 8:47 pm

Re: Append Header to Web Interface

Postby behr00z » Thu Jan 29, 2015 5:44 am

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


Return to Site Administration

Who is online

Users browsing this forum: No registered users and 3 guests