feat: add author name input and allow wildcard CORS origins

This commit is contained in:
Devesh S
2026-07-22 13:24:38 +05:30
parent 8cacd1f23e
commit 61b59a8263
2 changed files with 28 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/api/**")
.allowedOrigins("http://localhost:5173", "http://localhost:3000")
.allowedOriginPatterns("*")
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true);