Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
Allow credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziedelth committed Jan 4, 2024
1 parent 6239079 commit ddaee81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/fr/ziedelth/plugins/HTTP.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ fun Application.configureHTTP(isDebug: Boolean = false) {

install(CORS) {
HttpMethod.DefaultMethods.forEach { allowMethod(it) }
allowCredentials = true
allowHeader(HttpHeaders.Authorization)
anyHost()
}
Expand Down

0 comments on commit ddaee81

Please sign in to comment.