0

How can I achieve csrf protection where I am calling controller from jsp like this.

href="/report/test.do?action=test"

I am using Spring 3.1 MVC.

user3132347
  • 363
  • 1
  • 7
  • 27

1 Answers1

0

Have You considered adding spring security. It by default add sf and csrf protection. If you dont use spring security then you have to write your own code for csrf protection You can check this LINK for spring security

Community
  • 1
  • 1
LynAs
  • 6,407
  • 14
  • 48
  • 83
  • @Sazzad thanks for you help..but this not what am looking exactly.I have already done csrf protection but that doesn't support when the request is "GET".I have used the csrf token in a hidden field for normal jsp.But I need to do the protection on particular action which is mention above – user3132347 Jan 05 '15 at 09:25