Skip to content

Commit def7400

Browse files
committed
fix(core): Add PUT to the allowed methods in the CORS config
As the API contains PUT endpoints, it must also be an allowed method in the CORS configuration. Fixes #1048. Signed-off-by: Martin Nonnenmacher <[email protected]>
1 parent aa6aa87 commit def7400

File tree

1 file changed

+1
-0
lines changed
  • core/src/main/kotlin/plugins

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@ fun Application.configureHTTP() {
4343
allowHeader(HttpHeaders.ContentType)
4444
allowMethod(HttpMethod.Delete)
4545
allowMethod(HttpMethod.Patch)
46+
allowMethod(HttpMethod.Put)
4647
}
4748
}

0 commit comments

Comments
 (0)