From 0a04fe42136219b5b6beb7cefcbb82ad75908cce Mon Sep 17 00:00:00 2001 From: Jiho Date: Thu, 24 Jul 2025 11:46:14 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20CORS=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../techie/backend/global/security/SecurityConfig.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/back-end/src/main/java/com/techie/backend/global/security/SecurityConfig.java b/back-end/src/main/java/com/techie/backend/global/security/SecurityConfig.java index b11f511..4c3051f 100644 --- a/back-end/src/main/java/com/techie/backend/global/security/SecurityConfig.java +++ b/back-end/src/main/java/com/techie/backend/global/security/SecurityConfig.java @@ -21,6 +21,7 @@ import org.springframework.web.cors.CorsConfigurationSource; import java.util.Collections; +import java.util.List; @Configuration @EnableWebSecurity @@ -70,12 +71,12 @@ public CorsConfiguration getCorsConfiguration(HttpServletRequest request) { CorsConfiguration configuration = new CorsConfiguration(); - configuration.setAllowedOrigins(Collections.singletonList("http://localhost:3000")); - configuration.setAllowedMethods(Collections.singletonList("*")); + configuration.setAllowedOrigins(List.of("https://techie-mu.vercel.app")); + configuration.setAllowedMethods(List.of("*")); configuration.setAllowCredentials(true); - configuration.setAllowedHeaders(Collections.singletonList("*")); + configuration.setAllowedHeaders(List.of("*")); configuration.setMaxAge(3600L); - configuration.setExposedHeaders(Collections.singletonList("Authorization")); + configuration.setExposedHeaders(List.of("Authorization")); return configuration; } From b1b673fe43df91308d91dd05dccdee1720f0f6e0 Mon Sep 17 00:00:00 2001 From: Jiho Date: Thu, 24 Jul 2025 12:17:58 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=EC=98=A4=ED=83=88=EC=9E=90=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front-end/src/components/mypage/MyVideoSection.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front-end/src/components/mypage/MyVideoSection.tsx b/front-end/src/components/mypage/MyVideoSection.tsx index ee76787..b0a3b99 100644 --- a/front-end/src/components/mypage/MyVideoSection.tsx +++ b/front-end/src/components/mypage/MyVideoSection.tsx @@ -3,7 +3,7 @@ import React, { useState, useCallback, useEffect } from 'react'; import { DetailPlayList, PlayLists } from '@/types/playlist'; // 인터페이스 임포트 import { useRouter } from 'next/navigation'; -import { getVideo, detailPlaylist, deletepPlaylist } from '@/app/api/playlistApi'; +import { getVideo, detailPlaylist, deletePlaylist } from '@/app/api/playlistApi'; import Cookies from 'js-cookie'; import { devConsoleError } from '@/utils/logger'; @@ -52,7 +52,7 @@ const MyVideoSection: React.FC = () => { } const token = Cookies.get('token'); try { - await deletepPlaylist(playlistId, token); + await deletePlaylist(playlistId, token); fetchPlaylists(); } catch (error) { devConsoleError('Failed to delete playlist', error);