From 7f2ff530ba061e0360e0358c0ee0de5123706419 Mon Sep 17 00:00:00 2001 From: zangsu Date: Wed, 7 Aug 2024 17:57:18 +0900 Subject: [PATCH] =?UTF-8?q?fix(swagger):=20Swagger=20=EC=9D=98=20CORS=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0=EC=9D=84=20=EC=9C=84?= =?UTF-8?q?=ED=95=B4=20=EC=84=9C=EB=B2=84=20URL=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/codezap/global/swagger/SpringDocConfiguration.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/main/java/codezap/global/swagger/SpringDocConfiguration.java b/backend/src/main/java/codezap/global/swagger/SpringDocConfiguration.java index 4df18507b..1df9dfb00 100644 --- a/backend/src/main/java/codezap/global/swagger/SpringDocConfiguration.java +++ b/backend/src/main/java/codezap/global/swagger/SpringDocConfiguration.java @@ -5,6 +5,7 @@ import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.info.Info; +import io.swagger.v3.oas.models.servers.Server; @Configuration public class SpringDocConfiguration { @@ -20,6 +21,7 @@ public OpenAPI openAPI() { """); return new OpenAPI() + .addServersItem(new Server().url("https://api.code-zap.com")) .info(info); } }