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

Commit 3d957b0

Browse files
authored
Fixed Cors for dev and stage
1 parent 8094107 commit 3d957b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public CorsFilter corsFilterDev() {
3131
ArrayList<String> allowedOrigins = new ArrayList<>();
3232
allowedOrigins.add("*");
3333
config.setAllowedOrigins(allowedOrigins);
34+
config.setAllowedMethods(allowedMethods);
3435

3536
final UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
3637
source.registerCorsConfiguration("/**", config);

0 commit comments

Comments
 (0)