Skip to content

Commit

Permalink
cors issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle committed Dec 23, 2022
1 parent c2197e2 commit a8ed1ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>fr.insee.knowledge</groupId>
<artifactId>knowledge</artifactId>
<version>0.4.6</version>
<version>0.4.7</version>
<packaging>jar</packaging>
<name>Knowledge-Back-Office</name>
<description>Back-office services for Knowledge</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public FilterRegistrationBean<CorsFilter> corsFilter() {
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
CorsConfiguration config = new CorsConfiguration();
config.setAllowCredentials(true);
config.addAllowedOrigin(crosOrigin);
config.addAllowedOriginPattern(crosOrigin);
config.addAllowedHeader("*");
config.addAllowedMethod("*");
config.setMaxAge(3600L);
Expand Down

0 comments on commit a8ed1ab

Please sign in to comment.