Skip to content

Commit e7753e4

Browse files
committed
Fix: Add Access-Control-Allow-Credentials header for handshaking response
1 parent 81782b7 commit e7753e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/vietle/mychatapi/MychatapiApplication.java

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public void addCorsMappings(CorsRegistry registry) {
2424
registry.addMapping("/**")
2525
.allowedOrigins(allowedOrigins)
2626
.allowedMethods("GET", "POST", "DELETE", "PUT", "PATCH", "OPTIONS")
27+
.allowedHeaders("*")
2728
.allowCredentials(true);
2829
}
2930
};

0 commit comments

Comments
 (0)