Skip to content

Commit d011037

Browse files
authored
Update SecurityConfig.java
1 parent 833200f commit d011037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/example/demo/security/config/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
8080
@Bean
8181
public CorsConfigurationSource corsConfigurationSource(){
8282
CorsConfiguration corsConfiguration=new CorsConfiguration();
83-
corsConfiguration.setAllowedOriginPatterns(Arrays.asList("https://d1ujq2bm8j3hx9.cloudfront.net","http://localhost:8080"));
83+
corsConfiguration.setAllowedOriginPatterns(Arrays.asList("https://d1ujq2bm8j3hx9.cloudfront.net","http://localhost:5173","http://192.168.0.12:5173"));
8484
corsConfiguration.setAllowedMethods(Arrays.asList("GET","POST","DELETE","OPTIONS","PUT"));
8585
corsConfiguration.setAllowedHeaders(List.of("*"));
8686
corsConfiguration.setAllowCredentials(true);

0 commit comments

Comments
 (0)