Update CORS configuration to allow additional origins
This commit is contained in:
@@ -31,7 +31,9 @@ public class SecurityConfig {
|
||||
CorsConfiguration config = new CorsConfiguration();
|
||||
config.setAllowedOrigins(Arrays.asList(
|
||||
"http://localhost:5173",
|
||||
"http://127.0.0.1:5173"
|
||||
"http://127.0.0.1:5173",
|
||||
"http://localhost:8000",
|
||||
"http://127.0.0.1:8000"
|
||||
));
|
||||
config.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"));
|
||||
config.setAllowedHeaders(Collections.singletonList("*"));
|
||||
|
||||
Reference in New Issue
Block a user