Advertisement
Guest User

Untitled

a guest
Feb 28th, 2021
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. @Override
  2. protected void configure(HttpSecurity http) throws Exception {
  3. http.csrf()
  4. .disable()
  5. .apply(jwtConfigurator)
  6. .and()
  7. .sessionManagement()
  8. .sessionCreationPolicy(SessionCreationPolicy.STATELESS)
  9. .and()
  10. .authorizeRequests()
  11. .antMatchers("/info/**").permitAll()
  12. .antMatchers("/api/**").authenticated()
  13. .and();
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement