Fixes cors for other pc packaging
This commit is contained in:
@@ -89,10 +89,8 @@ public class SecurityConfig {
|
||||
CorsConfiguration configuration =
|
||||
new CorsConfiguration();
|
||||
|
||||
configuration.setAllowedOrigins(
|
||||
List.of(
|
||||
"http://localhost:1420"
|
||||
)
|
||||
configuration.setAllowedOriginPatterns(
|
||||
List.of("*")
|
||||
);
|
||||
|
||||
configuration.setAllowedMethods(
|
||||
@@ -109,7 +107,11 @@ public class SecurityConfig {
|
||||
List.of("*")
|
||||
);
|
||||
|
||||
configuration.setAllowCredentials(true);
|
||||
configuration.setExposedHeaders(
|
||||
List.of("*")
|
||||
);
|
||||
|
||||
configuration.setAllowCredentials(false);
|
||||
|
||||
UrlBasedCorsConfigurationSource source =
|
||||
new UrlBasedCorsConfigurationSource();
|
||||
|
||||
Reference in New Issue
Block a user