Update api/src/main/java/fr/gameovergne/api/config/SecurityConfig.java
This commit is contained in:
@@ -61,7 +61,11 @@ public class SecurityConfig {
|
||||
@Bean
|
||||
public CorsConfigurationSource corsConfigurationSource() {
|
||||
CorsConfiguration config = new CorsConfiguration();
|
||||
config.setAllowedOrigins(Arrays.asList("http://localhost:4200", "http://127.0.0.1:4200", "https://dev.unifihomenetwork.com/gameovergne"));
|
||||
config.setAllowedOrigins(Arrays.asList(
|
||||
"http://localhost:4200",
|
||||
"http://127.0.0.1:4200",
|
||||
"https://dev.unifihomenetwork.com"
|
||||
));
|
||||
config.setAllowedMethods(Arrays.asList("GET","POST","PUT","DELETE","OPTIONS"));
|
||||
config.setAllowedHeaders(Arrays.asList("Authorization","Content-Type","Accept"));
|
||||
config.setExposedHeaders(Arrays.asList("Authorization"));
|
||||
|
||||
Reference in New Issue
Block a user