Skip to content

jazhnaneh/Starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starter

spring boot & angular starter tutorial https://www.aparat.com/jezhnana

Disable spring security

go to configuration/WebSecurityConfig.java and then write below code to configure method

httpSecurity.cors().and().csrf().disable();

and comment below code

httpSecurity.csrf().disable()
         .authorizeRequests().antMatchers("/auth/authentication","/users/register").permitAll()
         .anyRequest().authenticated().and()
         .exceptionHandling().authenticationEntryPoint(jwtAuthenticationEntryPoint).and()
         .sessionManagement()
         .sessionCreationPolicy(SessionCreationPolicy.STATELESS);
          httpSecurity.addFilterBefore(jwtRequestFilter, UsernamePasswordAuthenticationFilter.class);

About

spring boot & angular starter sample tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published