Skip to content

Commit

Permalink
Reconfigure CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
ninori9 committed Jan 6, 2025
1 parent e38ad07 commit 2f57807
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public PasswordEncoder passwordEncoder() {
@Bean
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.addAllowedOriginPattern("*");
//configuration.addAllowedOrigin(kbOrigin);
configuration.addAllowedOrigin(chatbotOrigin);
configuration.addAllowedOrigin(kbOrigin);
configuration.setAllowCredentials(true);
configuration.addAllowedMethod("*");
configuration.addAllowedHeader("*");
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application-prod.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
spring.datasource.url=jdbc:postgresql://db:5432/kbdatabase
springdoc.swagger-ui.enabled=false
logging.level.org.springframework.security=DEBUG

0 comments on commit 2f57807

Please sign in to comment.