API Gateway 중복 CORS 헤더 제거 설정 추가

This commit is contained in:
hiondal 2025-09-10 23:33:40 +09:00
parent 99bef2c853
commit f18d821d7d
2 changed files with 2 additions and 3 deletions

View File

@ -58,7 +58,7 @@ public class GatewayConfig {
return builder.routes() return builder.routes()
// Auth Service 라우팅 (인증 불필요) // Auth Service 라우팅 (인증 불필요)
.route("user-service-login", r -> r .route("user-service-login", r -> r
.path("/api/v1/auth/login", "/api/v1/auth/refresh") .path("/api/v1/auth/login", "/api/v1/auth/register", "/api/v1/auth/refresh")
.and() .and()
.method("POST") .method("POST")
.uri(userServiceUrl)) .uri(userServiceUrl))
@ -116,7 +116,7 @@ public class GatewayConfig {
.setBackoff(java.time.Duration.ofSeconds(1), java.time.Duration.ofSeconds(5), 2, true)) .setBackoff(java.time.Duration.ofSeconds(1), java.time.Duration.ofSeconds(5), 2, true))
) )
.uri(kosMockUrl)) .uri(kosMockUrl))
// 주의: Gateway 자체 엔드포인트는 라우팅하지 않음 // 주의: Gateway 자체 엔드포인트는 라우팅하지 않음
// Health Check와 Swagger UI는 Spring Boot에서 직접 제공 // Health Check와 Swagger UI는 Spring Boot에서 직접 제공

View File

@ -3,7 +3,6 @@
<ExternalSystemSettings> <ExternalSystemSettings>
<option name="env"> <option name="env">
<map> <map>
<entry key="BILL_INQUIRY_URL" value="http://localhost:8082" />
<entry key="CORS_ALLOWED_ORIGINS" value="http://localhost:3000" /> <entry key="CORS_ALLOWED_ORIGINS" value="http://localhost:3000" />
<entry key="DB_HOST" value="20.249.70.6" /> <entry key="DB_HOST" value="20.249.70.6" />
<entry key="DB_KIND" value="postgresql" /> <entry key="DB_KIND" value="postgresql" />