diff --git a/src/main/java/org/example/gather_back_end/util/config/SecurityConfig.java b/src/main/java/org/example/gather_back_end/util/config/SecurityConfig.java index 592dcfe..2961b6e 100644 --- a/src/main/java/org/example/gather_back_end/util/config/SecurityConfig.java +++ b/src/main/java/org/example/gather_back_end/util/config/SecurityConfig.java @@ -58,7 +58,7 @@ public CorsConfiguration getCorsConfiguration(HttpServletRequest request) { "https://www.to-gather.info", "http://localhost:5173", "http://localhost:8080", - "https://backend.to-gather.info/swagger-ui/index.html#" + "https://backend.to-gather.info" )); configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS")); configuration.setAllowCredentials(true); @@ -78,7 +78,7 @@ public CorsConfiguration getCorsConfiguration(HttpServletRequest request) { .failureHandler(customFailureHandler) ) .authorizeHttpRequests(authorize -> authorize - .requestMatchers("/**","/api/**").permitAll() + .requestMatchers("/**","/swagger-ui/**").permitAll() .anyRequest().authenticated() ) .sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))