Skip to content

Commit 0a66ee5

Browse files
committed
Fix: Remove CORS header config
1 parent 7aa4549 commit 0a66ee5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public WebMvcConfigurer corsConfigurer() {
2323
public void addCorsMappings(CorsRegistry registry) {
2424
registry.addMapping("/**")
2525
.allowedOrigins(allowedOrigins)
26-
.allowedHeaders("*")
2726
.allowedMethods("GET", "POST", "DELETE", "PUT", "PATCH", "OPTIONS");
2827
}
2928
};

0 commit comments

Comments
 (0)