Liferay CSRF protection with @ResourceMapping

I need to add CSRF token (p_auth) to my Liferay (ver.6.1.1) portal project. Liferay provides this ability out of the box with auth.token.check.enabled=true

But it does this only for requests marked with @ActionMapping annotation [source]. At that time, as I need CSRF protection for @ResourceMapping because I have a lot of ajax requests for form submitting.

Thank you for the advice.

Answers


You can find the way for implementation of protection in http://www.liferay.com/community/forums/-/message_boards/message/26782849


Need Your Help

How to resize .bmp image in Java?

java image image-processing bmp

So I am trying to resize a .bmp image using the following code:

Is it possible to parent to only one or two axes in Blender?

python loops camera parent blender

I'm in the process of creating a 2d platformer using the Blender Game Engine. I'm having trouble getting the camera to follow my character and keep him in the center of the screen. Initially, I tried

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.