Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 08619d4

Browse files
authored
FF-139 Remove CORS from rest Api (#28)
1 parent 68c5935 commit 08619d4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/main/java/de/filefighter/rest/configuration/RestConfiguration.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,4 @@ public class RestConfiguration {
1717
public static final String FS_PATH_HEADER = "X-FF-PATH";
1818
public static final String USER_BASE_URI = "/users/";
1919

20-
@Bean
21-
public WebMvcConfigurer configurer(){
22-
23-
return new WebMvcConfigurer(){
24-
@Override
25-
public void addCorsMappings(@NotNull CorsRegistry registry) {
26-
registry.addMapping("/*")
27-
.allowedOrigins("*");
28-
}
29-
};
30-
}
3120
}

0 commit comments

Comments
 (0)