Here is the code snippet to do this:
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable();
}
}
References:
- https://github.com/pyav/restful-web-services/blob/main/src/main/java/com/pyav/rest/webservices/restfulwebservices/WebSecurityConfig.java
No comments:
Post a Comment