|
|
|
|
@ -98,7 +98,7 @@ public class SecurityConfig {
|
|
|
|
|
@Bean
|
|
|
|
|
public CorsConfigurationSource corsConfigurationSource() {
|
|
|
|
|
CorsConfiguration configuration = new CorsConfiguration();
|
|
|
|
|
configuration.setAllowedOrigins(Arrays.asList("http://localhost:5173"));
|
|
|
|
|
configuration.setAllowedOriginPatterns(Arrays.asList("**"));
|
|
|
|
|
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS"));
|
|
|
|
|
configuration.setAllowedHeaders(Arrays.asList("Authorization", "Content-Type", "X-Requested-With"));
|
|
|
|
|
configuration.setAllowCredentials(true);
|
|
|
|
|
|