Saturday 15 September 2012

authentication - Wicket token ignores domain -


I need to add a token to my page to authenticate the application in IFrame. The problem is that when I set the domain to a cookie, it does not add to the page. I create a cookie as an example of a wicket:

  WebResponse webResponse = (WebResponse) RequestCycle.get (). GetResponse (); Cookie cookie = new cookie ("MY_AUTH_TOKEN", "token"); Cookie.setpath ("/"); Cookie.setDomain ("domain_in_iframe.com"); WebResponse.addCookie (cookie);  

HTML:

  & lt; Iframe src = "http://domain_in_iframe.com/" style = "width: 100%; height: 500px;" & gt; & Lt; / Iframe & gt;  

is set when domain is used if it is used in the browser. SerDomain method exists without using cookie but shows as cookie with local host domain.

Even when adding a cookie by hand to web browser functions does not have this code. Any ideas why?

You can not set a domain different from the current domain for security reasons.


No comments:

Post a Comment