From af13e676b0e2cf93711feb14eb101650fb9ca635 Mon Sep 17 00:00:00 2001 From: yena <50291995+nyj001012@users.noreply.github.com> Date: Wed, 25 Oct 2023 17:57:12 +0900 Subject: [PATCH] =?UTF-8?q?fix(cursus):=20Access-Control-Allow-Origin=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/v1/cursus/cursus.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/v1/cursus/cursus.service.ts b/backend/src/v1/cursus/cursus.service.ts index e70bf1fe..69ecf51e 100644 --- a/backend/src/v1/cursus/cursus.service.ts +++ b/backend/src/v1/cursus/cursus.service.ts @@ -59,6 +59,8 @@ export const getUserProjectFrom42API = async ( headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${accessToken}`, + AccessControlAllowOrigin: 'https://42library.kr', + AccessControllAllowCredentials: 'true', }, }) .then((response) => { @@ -323,6 +325,8 @@ export const getProjectsInfo = async (accessToken: string, pageNumber: string) = .get(`${uri}?${queryString}${pageQuery}`, { headers: { Authorization: `Bearer ${accessToken}`, + AccessControlAllowOrigin: 'https://42library.kr', + AccessControllAllowCredentials: 'true', }, }) .catch((error) => {