Skip to content

Commit 48d45cb

Browse files
committed
🔧 chore(config): allow CORS for frontend deployed on Vercel
1 parent a2b5af8 commit 48d45cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/bookstudio/shared/config/WebConfig.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ public class WebConfig implements WebMvcConfigurer {
1111
@Override
1212
public void addCorsMappings(@NonNull CorsRegistry registry) {
1313
registry.addMapping("/api/**")
14-
.allowedOrigins("http://localhost:4321")
14+
.allowedOrigins(
15+
"http://localhost:4321",
16+
"https://bookstudio-v1.vercel.app")
1517
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
1618
.allowedHeaders("*")
1719
.allowCredentials(true);

0 commit comments

Comments
 (0)