Skip to content

Commit 7ca6137

Browse files
committed
fix : CORS 설정 변경
1 parent f5847f8 commit 7ca6137

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

api/src/main/java/com/mbtips/common/controller/HealthCheckController.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
import io.swagger.v3.oas.annotations.security.SecurityRequirements;
55
import io.swagger.v3.oas.annotations.tags.Tag;
66
import lombok.RequiredArgsConstructor;
7-
import org.springframework.web.bind.annotation.GetMapping;
8-
import org.springframework.web.bind.annotation.RequestMapping;
9-
import org.springframework.web.bind.annotation.RestController;
7+
import org.springframework.web.bind.annotation.*;
108

119
@RestController
1210
@RequiredArgsConstructor
1311
@RequestMapping("/health-check")
12+
@CrossOrigin(origins = "*", allowedHeaders = "*", methods = {RequestMethod.GET})
1413
@Tag(name = "L7 health-check", description = "L7 health-check API")
1514
public class HealthCheckController {
1615

0 commit comments

Comments
 (0)