How to selectively disable CSRF check in Play Framework 2 (Java)

后端 未结 1 1243
醉话见心
醉话见心 2021-01-06 02:42

In Play Framework we can apply global CSRF check

@SuppressWarnings({ \"rawtypes\", \"unchecked\" })
@Override
public  Class&         


        
相关标签:
1条回答
  • 2021-01-06 03:34

    I created a blog post on how to do this, see here:

    http://dominikdorn.com/2014/07/playframework-2-3-global-csrf-protection-disable-csrf-selectively/

    2017-Update: Starting with PlayFramework 2.6, this is now included in the Framework itself: https://www.playframework.com/documentation/2.6.x/JavaCsrf#applying-a-global-csrf-filter

    0 讨论(0)
提交回复
热议问题