Skip to content

Commit

Permalink
Resolve CORS error (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinlee1703 authored Nov 1, 2023
2 parents 15f8e89 + aa04874 commit 3bf4569
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.swmaestro.repl.gifthub.giftcard.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
Expand Down Expand Up @@ -30,6 +31,7 @@ public class GiftcardController {

@GetMapping("/{id}")
@Operation(summary = "공유 정보 요청 메서드", description = "클라이언트에서 요청한 공유 정보를 전달하기 위한 메서드입니다.")
@CrossOrigin(origins = "http://seheon.kr, https://dev.gifthub.kr, https://gifthub.kr")
@ApiResponses({
@ApiResponse(responseCode = "200", description = "공유하기 정보 조회 성공"),
@ApiResponse(responseCode = "400", description = "만료된 공유하기 정보 접근"),
Expand Down

0 comments on commit 3bf4569

Please sign in to comment.