Skip to content

Commit 0bc3f36

Browse files
committed
fix(model-server): allow Authorization header to be sent from foreign origins
(needed for in-browser clients)
1 parent 298fce1 commit 0bc3f36

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
@@ -140,6 +140,7 @@ object Main {
140140
install(CORS) {
141141
anyHost()
142142
allowHeader(HttpHeaders.ContentType)
143+
allowHeader(HttpHeaders.Authorization)
143144
allowMethod(HttpMethod.Options)
144145
allowMethod(HttpMethod.Get)
145146
allowMethod(HttpMethod.Put)

0 commit comments

Comments
 (0)