Skip to content

Commit

Permalink
Merge pull request #15 from UMC-5th-Hackathon-N-Team/cors
Browse files Browse the repository at this point in the history
feat: cors 설정
  • Loading branch information
cimaron713 authored Jan 4, 2024
2 parents 2a6e261 + fb4ff06 commit 814bc58
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/sticker")
@CrossOrigin(origins = "http://localhost:3000")
@CrossOrigin(origins = "*", allowedHeaders = "*")
public class StickerController {

private final StickerImageService stickerImageService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

@RestController
@RequiredArgsConstructor
@CrossOrigin(origins = "http://localhost:3000")
@CrossOrigin(origins = "*", allowedHeaders = "*")
public class TempRestController {

@GetMapping("/test")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/bloodcard")
@CrossOrigin(origins = "http://localhost:3000")
@CrossOrigin(origins = "*", allowedHeaders = "*")
public class UserBloodController {
private final UserBloodService userBloodService;
@PostMapping("/")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

@RestController
@RequiredArgsConstructor
@CrossOrigin(origins = "http://localhost:3000")
@CrossOrigin(origins = "*", allowedHeaders = "*")
public class UserController {
private final UserService userService;

Expand Down

0 comments on commit 814bc58

Please sign in to comment.