From 7932228bae96f8333ef21b34372136e697a4c45c Mon Sep 17 00:00:00 2001 From: 0702Yoon Date: Sat, 10 Aug 2024 01:35:14 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20cors=20=ED=97=88=EB=9D=BD=EA=B0=92?= =?UTF-8?q?=20:=20http=20->=20https?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/bigbrotherbe/global/filter/CustomerCorsFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/example/bigbrotherbe/global/filter/CustomerCorsFilter.java b/src/main/java/com/example/bigbrotherbe/global/filter/CustomerCorsFilter.java index 9dcdcb7..a97bbb6 100644 --- a/src/main/java/com/example/bigbrotherbe/global/filter/CustomerCorsFilter.java +++ b/src/main/java/com/example/bigbrotherbe/global/filter/CustomerCorsFilter.java @@ -22,7 +22,7 @@ public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response = (HttpServletResponse) res; - response.setHeader("Access-Control-Allow-Origin", "http://api.mju-bigbrother.xyz:3000, http://localhost:3000"); + response.setHeader("Access-Control-Allow-Origin", "https://api.mju-bigbrother.xyz:3000, https://localhost:3000"); // CORS 허용한 Origin response.setHeader("Access-Control-Allow-Credentials", "true");