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