public class CsrfHeaderFilter
extends org.springframework.web.filter.OncePerRequestFilter
see: https://github.com/spring-guides/tut-spring-security-and-angular-js/blob/1ab67bd14e4a7fbfb0d5ed9f5a6060beca13d699/modular/src/main/java/demo/UiApplication.java
see: https://spring.io/guides/tutorials/spring-security-and-angular-js/
see: CsrfFilter
For Angular built in support for CSRF (which it calls "XSRF") based on cookies.
Created by zhanghaolun on 16/6/28.
Constructor and Description |
---|
CsrfHeaderFilter() |
Modifier and Type | Method and Description |
---|---|
protected void |
doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain) |
doFilter, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, IOException
doFilterInternal
in class org.springframework.web.filter.OncePerRequestFilter
javax.servlet.ServletException
IOException
Copyright © 2017. All rights reserved.