Skip to content

Commit 73c1cfe

Browse files
committed
(TP-117) feat: allowed all origins for dev stage
1 parent 63cfb2d commit 73c1cfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rentplace/src/main/java/kattsyn/dev/rentplace/configs/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
9090
@Bean
9191
public CorsConfigurationSource corsConfigurationSource() {
9292
CorsConfiguration config = new CorsConfiguration();
93-
config.setAllowedOriginPatterns(List.of("http://rentplace.online", "http://admin.rentplace.online"));
93+
config.setAllowedOriginPatterns(List.of("*"));
9494
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
9595
config.setAllowedHeaders(List.of("*"));
9696
config.setExposedHeaders(List.of("Authorization", "Cache-Control", "Content-Type", "Set-Cookie"));

0 commit comments

Comments
 (0)