From bcf36665f9eeaa85e8c40c5a34139f05aab1d42d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=A0=95=EB=AF=BC?= Date: Mon, 29 Jul 2024 15:11:25 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20cors=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/edufocus/edufocus/video/controller/Controller.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/com/edufocus/edufocus/video/controller/Controller.java b/backend/src/main/java/com/edufocus/edufocus/video/controller/Controller.java index b6c1493..b36b4d2 100644 --- a/backend/src/main/java/com/edufocus/edufocus/video/controller/Controller.java +++ b/backend/src/main/java/com/edufocus/edufocus/video/controller/Controller.java @@ -21,7 +21,7 @@ import org.springframework.web.bind.annotation.*; import livekit.LivekitWebhook.WebhookEvent; -@CrossOrigin(origins = "*") + @RestController @RequestMapping("/video") @Slf4j @@ -66,6 +66,8 @@ public class Controller { public ResponseEntity> startLecture(@PathVariable("lecture_id") Long id, HttpServletRequest request) throws Exception { String userToken = request.getHeader("Authorization"); + log.info("userToekn : ", userToken); + Long userId = Long.parseLong(jwtUtil.getUserId(userToken)); LectureDetailResponse lecture= lectureService.findLectureById(userId,id);