File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
java/io/f1/backend/global/config Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ public class CorsConfig {
1212 public CorsConfigurationSource corsConfigurationSource () {
1313 CorsConfiguration config = new CorsConfiguration ();
1414
15- config .addAllowedOrigin ("http://localhost:3000" ); // 개발 환경
16- config .addAllowedOrigin ("http://brainrace.duckdns.org" ); // 배포 환경
15+ config .addAllowedOrigin ("https://brainrace.duckdns.org" );
1716
1817 config .addAllowedHeader ("*" );
1918 config .addAllowedMethod ("*" );
Original file line number Diff line number Diff line change 1111
1212import org .springframework .context .annotation .Bean ;
1313import org .springframework .context .annotation .Configuration ;
14+ import org .springframework .http .HttpMethod ;
1415import org .springframework .security .config .Customizer ;
1516import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
1617import org .springframework .security .config .annotation .web .configuration .EnableWebSecurity ;
@@ -47,7 +48,8 @@ public SecurityFilterChain userFilterChain(HttpSecurity http) throws Exception {
4748 "/js/**" ,
4849 "/admin/login" )
4950 .permitAll ()
50- .requestMatchers ("/ws/**" )
51+ .requestMatchers (HttpMethod .OPTIONS , "/**" ).permitAll ()
52+ .requestMatchers ("/ws/**" )
5153 .authenticated ()
5254 .requestMatchers ("/user/me" )
5355 .hasRole ("USER" )
Original file line number Diff line number Diff line change @@ -59,5 +59,7 @@ server:
5959 servlet :
6060 session :
6161 cookie :
62+ same-site : None
63+ secure : true
6264 http-only : true
63- timeout : 1800
65+ timeout : 60
You can’t perform that action at this time.
0 commit comments