Skip to content

Commit aa6aa87

Browse files
committed
chore(core): Sort CORS config alphabetically for better overview
Signed-off-by: Martin Nonnenmacher <[email protected]>
1 parent c1100f3 commit aa6aa87

File tree

1 file changed

+2
-2
lines changed
  • core/src/main/kotlin/plugins

1 file changed

+2
-2
lines changed

core/src/main/kotlin/plugins/HTTP.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ fun Application.configureHTTP() {
3939
install(CORS) {
4040
allowedHosts.split(',').forEach(::allowHost)
4141
allowCredentials = true
42-
allowHeader(HttpHeaders.ContentType)
4342
allowHeader(HttpHeaders.Authorization)
44-
allowMethod(HttpMethod.Patch)
43+
allowHeader(HttpHeaders.ContentType)
4544
allowMethod(HttpMethod.Delete)
45+
allowMethod(HttpMethod.Patch)
4646
}
4747
}

0 commit comments

Comments
 (0)