{
"timestamp": 1530086973535,
"status": 403,
"error": "Forbidden",
"message": "Expected CSRF token not found. Has your session expired?",
"path": "/article/get"
}
springboot+spring security,在前端ajax调用接口的时候返回如上错误信息,
解决办法:
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().and()
.csrf().disable();
}