Putting the right configuration for cors
This commit is contained in:
parent
4c5cae7ff5
commit
c26972369f
@ -12,7 +12,7 @@ import java.util.Arrays;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@CrossOrigin(origins = "http://localhost:5173")
|
@CrossOrigin(originPatterns = "*", allowCredentials = "true")
|
||||||
|
|
||||||
public class MockController {
|
public class MockController {
|
||||||
private final BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
|
private final BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
|
||||||
|
@ -7,7 +7,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
import ovh.herisson.Clyde.Responses.PingResponse;
|
import ovh.herisson.Clyde.Responses.PingResponse;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@CrossOrigin(origins = "http://localhost:5173")
|
@CrossOrigin(originPatterns = "*", allowCredentials = "true")
|
||||||
public class PingController {
|
public class PingController {
|
||||||
|
|
||||||
@GetMapping("/ping")
|
@GetMapping("/ping")
|
||||||
|
@ -10,7 +10,7 @@ import org.springframework.core.io.Resource;
|
|||||||
import ovh.herisson.Clyde.Tables.FileType;
|
import ovh.herisson.Clyde.Tables.FileType;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@CrossOrigin(origins = "http://localhost:5173")
|
@CrossOrigin(originPatterns = "*", allowCredentials = "true")
|
||||||
public class StorageController {
|
public class StorageController {
|
||||||
|
|
||||||
private final StorageService storageServ;
|
private final StorageService storageServ;
|
||||||
|
@ -9,7 +9,7 @@ import ovh.herisson.Clyde.Services.TokenService;
|
|||||||
import ovh.herisson.Clyde.Tables.Token;
|
import ovh.herisson.Clyde.Tables.Token;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@CrossOrigin(origins = "http://localhost:5173")
|
@CrossOrigin(originPatterns = "*", allowCredentials = "true")
|
||||||
public class TokenController {
|
public class TokenController {
|
||||||
|
|
||||||
private final TokenService tokenServ;
|
private final TokenService tokenServ;
|
||||||
|
@ -20,7 +20,7 @@ import java.util.Map;
|
|||||||
|
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@CrossOrigin(origins = "http://localhost:5173")
|
@CrossOrigin(originPatterns = "*", allowCredentials = "true")
|
||||||
public class UserController {
|
public class UserController {
|
||||||
|
|
||||||
private final UserService userService;
|
private final UserService userService;
|
||||||
|
Loading…
Reference in New Issue
Block a user