diff --git a/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/AdminController.java b/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/AdminController.java index 5f49b17..dd4f92a 100644 --- a/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/AdminController.java +++ b/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/AdminController.java @@ -32,7 +32,7 @@ @RequiredArgsConstructor @PreAuthorize("hasRole('ADMIN')") @Tag(name = "Admin Controller", description = "Admin API") -@CrossOrigin +@CrossOrigin(origins = "*") public class AdminController { private final ZoneService zoneService; diff --git a/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/AuthController.java b/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/AuthController.java index 0fb1a4c..13d9914 100644 --- a/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/AuthController.java +++ b/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/AuthController.java @@ -19,7 +19,7 @@ @RequiredArgsConstructor @Validated @Tag(name = "Auth Controller", description = "Auth API") -@CrossOrigin +@CrossOrigin(origins = "*") public class AuthController { private final AuthService authService; diff --git a/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/CarController.java b/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/CarController.java index 8fdc8c1..6789446 100644 --- a/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/CarController.java +++ b/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/CarController.java @@ -21,7 +21,7 @@ @RequiredArgsConstructor @Validated @Tag(name = "Car Controller", description = "Car API") -@CrossOrigin +@CrossOrigin(origins = "*") public class CarController { private final CarService carService; diff --git a/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/ReservationController.java b/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/ReservationController.java index 1f46e0c..7aee841 100644 --- a/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/ReservationController.java +++ b/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/ReservationController.java @@ -19,7 +19,7 @@ @RequiredArgsConstructor @Validated @Tag(name = "Reservation Controller", description = "Reservation API") -@CrossOrigin +@CrossOrigin(origins = "*") public class ReservationController { diff --git a/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/UserController.java b/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/UserController.java index 865a4e8..c0c308a 100644 --- a/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/UserController.java +++ b/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/UserController.java @@ -34,7 +34,7 @@ @RequiredArgsConstructor @Validated @Tag(name = "User Controller", description = "User API") -@CrossOrigin +@CrossOrigin(origins = "*") public class UserController { private final UserService userService; diff --git a/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/ZoneController.java b/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/ZoneController.java index 8088e80..64e1ce9 100644 --- a/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/ZoneController.java +++ b/src/main/java/ru/ryazancev/parkingreservationsystem/web/controllers/ZoneController.java @@ -22,7 +22,7 @@ @RequiredArgsConstructor @Validated @Tag(name = "Zone Controller", description = "Zone API") -@CrossOrigin +@CrossOrigin(origins = "*") public class ZoneController { private final ZoneService zoneService;