Skip to content

Commit

Permalink
[#3] chore: FilterChain 파일 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
dl-00-e8 committed Jan 12, 2024
1 parent 212ff2c commit e6a2b3c
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.gongjakso.server.global.config;

import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.web.SecurityFilterChain;

@Configuration
@EnableWebSecurity
@RequiredArgsConstructor
public class SecurityConfig {

@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
//http.cors().configurationSource();

return http.build();
}
}

0 comments on commit e6a2b3c

Please sign in to comment.