Putting the right configuration for cors
	
		
			
	
		
	
	
		
	
		
			Some checks are pending
		
		
	
	
		
			
				
	
				Build and test backend / Build-backend (push) Waiting to run
				
			
		
			
				
	
				Build and test backend / Test-backend (push) Waiting to run
				
			
		
			
				
	
				deploy to production / deploy-frontend (push) Waiting to run
				
			
		
			
				
	
				deploy to production / deploy-backend (push) Waiting to run
				
			
		
			
				
	
				Build and test FrontEnd / Build-frontend (push) Waiting to run
				
			
		
		
	
	
				
					
				
			
		
			Some checks are pending
		
		
	
	Build and test backend / Build-backend (push) Waiting to run
				
			Build and test backend / Test-backend (push) Waiting to run
				
			deploy to production / deploy-frontend (push) Waiting to run
				
			deploy to production / deploy-backend (push) Waiting to run
				
			Build and test FrontEnd / Build-frontend (push) Waiting to run
				
			This commit is contained in:
		| @ -12,7 +12,7 @@ import java.util.Arrays; | ||||
| import java.util.Date; | ||||
|  | ||||
| @RestController | ||||
| @CrossOrigin(origins = "http://localhost:5173") | ||||
| @CrossOrigin(originPatterns = "*", allowCredentials = "true") | ||||
|  | ||||
| public class MockController { | ||||
|     private final BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder(); | ||||
|  | ||||
| @ -7,7 +7,7 @@ import org.springframework.web.bind.annotation.RestController; | ||||
| import ovh.herisson.Clyde.Responses.PingResponse; | ||||
|  | ||||
| @RestController | ||||
| @CrossOrigin(origins = "http://localhost:5173") | ||||
| @CrossOrigin(originPatterns = "*", allowCredentials = "true") | ||||
| public class PingController { | ||||
|  | ||||
| 	@GetMapping("/ping") | ||||
|  | ||||
| @ -10,7 +10,7 @@ import org.springframework.core.io.Resource; | ||||
| import ovh.herisson.Clyde.Tables.FileType; | ||||
|  | ||||
| @RestController | ||||
| @CrossOrigin(origins = "http://localhost:5173") | ||||
| @CrossOrigin(originPatterns = "*", allowCredentials = "true") | ||||
| public class StorageController { | ||||
|  | ||||
|     private final StorageService storageServ; | ||||
|  | ||||
| @ -9,7 +9,7 @@ import ovh.herisson.Clyde.Services.TokenService; | ||||
| import ovh.herisson.Clyde.Tables.Token; | ||||
|  | ||||
| @RestController | ||||
| @CrossOrigin(origins = "http://localhost:5173") | ||||
| @CrossOrigin(originPatterns = "*", allowCredentials = "true") | ||||
| public class TokenController { | ||||
|  | ||||
|     private final TokenService tokenServ; | ||||
|  | ||||
| @ -20,7 +20,7 @@ import java.util.Map; | ||||
|  | ||||
|  | ||||
| @RestController | ||||
| @CrossOrigin(origins = "http://localhost:5173") | ||||
| @CrossOrigin(originPatterns = "*", allowCredentials = "true") | ||||
| public class UserController { | ||||
|  | ||||
|     private final UserService userService; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user