Skip to content

Commit

Permalink
πŸš‘ [HOTFIX] CORS μ—λŸ¬λ‘œ μΈν•œ μž„μ‹œ μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
kchaeeun committed Aug 21, 2024
1 parent dace6c1 commit cb0be12
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http
.httpBasic(AbstractHttpConfigurer::disable) // http form login λΉ„ν™œμ„±ν™”
.csrf(AbstractHttpConfigurer::disable) // csrf ν•„ν„° λΉ„ν™œμ„±ν™” -> cookies μ‚¬μš©ν•˜μ§€ μ•ŠμœΌλ―€λ‘œ μœ„ν—˜ μ—†μŒ
.cors(AbstractHttpConfigurer::disable)
.formLogin(AbstractHttpConfigurer::disable) // basic login λΉ„ν™œμ„±ν™”
.sessionManagement(sessionManagement -> sessionManagement.sessionCreationPolicy(SessionCreationPolicy.STATELESS)) // session μ‚¬μš© X
.addFilterBefore(new JwtAuthenticationFilter(jwtService), UsernamePasswordAuthenticationFilter.class)
Expand Down

0 comments on commit cb0be12

Please sign in to comment.