Skip to content

Commit 0604e52

Browse files
author
Manuela Weigold
committed
change cors policy
the pattern atlas api needs to available from localhost:8080 since we changed the ports in the quantil docker compose setup
1 parent abdb772 commit 0604e52

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/patternpedia/api/config/ResourceServerConfig.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ public FilterRegistrationBean customCorsFilter() {
6161
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
6262
CorsConfiguration config = new CorsConfiguration();
6363
config.setAllowCredentials(true);
64-
config.addAllowedOrigin("http://localhost:4200");
65-
config.addAllowedOrigin("http://localhost:4201");
64+
config.addAllowedOrigin("http://localhost");
6665
config.addAllowedHeader("*");
6766
config.addAllowedMethod("*");
6867
source.registerCorsConfiguration("/**", config);

0 commit comments

Comments
 (0)