Quantcast
Channel: Middleware wonders!!
Viewing all articles
Browse latest Browse all 133

How to prevent CSRF attack

$
0
0

Copyright 2013 - http://www. Weblogic-Wonders.com

Sometimes when one application tries to call another application running on another server you get an error window with the message potential CSRF attack. At the same time you will see the following error message in the log files.

<BEA-000000> <A request has been denied as a potential CSRF attack.>

This issues arises due to the fact that WLS is not able to set the jsession id in the request made to the other server.

To address this issue we need to add the following in weblogic.xml

<session-descriptor>
<cookie-http-only>false</cookie-http-only>
</session-descriptor>

 

If the issue still persists, we need to add the following in the web.xml

<init-param>
<param-name>crossDomainSessionSecurity</param-name>
<param-value>false</param-value>
</init-param>

 

 

 

The post How to prevent CSRF attack appeared first on Middleware wonders!!.


Viewing all articles
Browse latest Browse all 133

Trending Articles