Skip to content

Commit 86b62d9

Browse files
author
Oleksandr Dzhychko
authored
Merge pull request #981 from abstraktor/feature/cors-with-auth-header
allow Authorization header to be sent from foreign origins
2 parents e923006 + 0bc3f36 commit 86b62d9

File tree

1 file changed

+1
-0
lines changed
  • model-server/src/main/kotlin/org/modelix/model/server

1 file changed

+1
-0
lines changed

model-server/src/main/kotlin/org/modelix/model/server/Main.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ object Main {
202202
install(CORS) {
203203
anyHost()
204204
allowHeader(HttpHeaders.ContentType)
205+
allowHeader(HttpHeaders.Authorization)
205206
allowMethod(HttpMethod.Options)
206207
allowMethod(HttpMethod.Get)
207208
allowMethod(HttpMethod.Put)

0 commit comments

Comments
 (0)