Skip to content

Commit

Permalink
Feat: CORS 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pjh5365 authored Sep 2, 2024
1 parent f23be5b commit 391ce6d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
Expand All @@ -26,6 +27,7 @@
* @author : parkjihyeok
* @since : 2024/08/18
*/
@CrossOrigin(origins = "http://localhost:5173")
@RestController
@RequestMapping("/chat")
@RequiredArgsConstructor
Expand Down

0 comments on commit 391ce6d

Please sign in to comment.