• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I enable cookie for third party website in IE from java

 
dhiren sangani
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using IFrame in jsp and trying to login into third party web site. It perfectly works for fire fox and chrome but it doesn't work for IE. It gives error like "Access is denied".
I have also tried to set response header as below :

response.setHeader("P3P", "CP='IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA'");

But still it doesn't seems to work.

When I manually set privacy level to "Accept All Cookies" then it works in IE also but I want to do it through program.

Please let me know how can I do that.

Thanks in advance
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not change user's security settings with code.

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65126
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Imagine the security nightmare if you could!
 
dhiren sangani
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Eric and Bear for reply,

I agree that we can not change user security, but when I searched in google then I found many links in which they have mentioned that by setting P3P header we can resolve this issue in IE. I just want to read all content and do not want to modify anything on site. Is there any possible way to do it ? I mean can we only ready and display content ? Same thing is working in Firefox and Chrome. I just want to show third-party content.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic