How to handle HTTP 403 with Spring Security 3.0.x

前端 未结 5 1350
温柔的废话
温柔的废话 2021-02-04 09:44

I\'m facing a little issue with Spring Security 3.0.x (3.0.2 in particular at the moment). The whole application I\'m working on is working perfectly except when someone who doe

5条回答
  •  花落未央
    2021-02-04 10:31

    You have checked the tag in an application and to me it seems to work.

    
    

    where handle403Url I want to call to handle this error (for example to show an error).

    Don't forget that you have to allow this url in the filters so it can be reached by this user authority, so in the start of the flters you have to add something like this:

    
    

提交回复
热议问题