본 포스팅은 패스트캠퍼스 환급 챌린지 참여를 위해 작성하였습니다.
공부 시작 시각 인증
수강 인증 사진
※ CSP 관련 보안 문제로 현재 해결 방안 모색 중... 우선, 스프링에서 WebSecurityConfig에서 설정하는 중이다.
WebSecurityConfig.java
package org.fastcampus.common.config;
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
public class WebSecurityConfig {
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http
.headers(headers -> headers
.contentSecurityPolicy(csp -> csp
.policyDirectives("script-src 'nonce-EDNnf03nceIOfn39fn3e9h3sdfa'")
)
);
return http.build();
}
}