Advertisement
finalmail

Untitled

Dec 15th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1.     @Override
  2.     protected void configure(HttpSecurity http) throws Exception {
  3.         http.cors()
  4.             .and().authorizeRequests()
  5.             .anyRequest().permitAll()
  6.             .and().csrf().disable()
  7.             .and()
  8.             .addFilter(new JwtAuthenticationFilter(authenticationManager()))
  9.             .addFilter(new JwtAuthorizationFilter(authenticationManager()))
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement