Skip to content

Commit

Permalink
fix code style for webconfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisvang committed Nov 18, 2024
1 parent 8ac2170 commit 08af049
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main/java/org/fairdatapoint/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ public InternalResourceViewResolver defaultViewResolver() {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE") // todo: what about OPTIONS?
.allowedHeaders(
HttpHeaders.ORIGIN,
HttpHeaders.AUTHORIZATION,
HttpHeaders.ACCEPT,
HttpHeaders.CONTENT_TYPE
)
.exposedHeaders(HttpHeaders.LOCATION, HttpHeaders.LINK);
.allowedOrigins("*")
// todo: what about OPTIONS?
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE")
.allowedHeaders(
HttpHeaders.ORIGIN,
HttpHeaders.AUTHORIZATION,
HttpHeaders.ACCEPT,
HttpHeaders.CONTENT_TYPE)
.exposedHeaders(HttpHeaders.LOCATION, HttpHeaders.LINK);
}

}

0 comments on commit 08af049

Please sign in to comment.