From 08af0496c5eafec56537bd5d872eb91c713d79e4 Mon Sep 17 00:00:00 2001 From: dennisvang <29799340+dennisvang@users.noreply.github.com> Date: Mon, 18 Nov 2024 11:53:53 +0100 Subject: [PATCH] fix code style for webconfig.java --- .../org/fairdatapoint/config/WebConfig.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/org/fairdatapoint/config/WebConfig.java b/src/main/java/org/fairdatapoint/config/WebConfig.java index 618f7de9..9c15eb7e 100644 --- a/src/main/java/org/fairdatapoint/config/WebConfig.java +++ b/src/main/java/org/fairdatapoint/config/WebConfig.java @@ -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); } }