Fix CORS setup
AnyHost * is not allowed in combination with Allow-Credentials, see https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials
This commit is contained in:
parent
d3de43dcd9
commit
97a6807b84
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ fun Application.moduleWithDependencies(
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
install(CORS) {
|
install(CORS) {
|
||||||
host("https://twigs.wbrawner.com") // TODO: Make configurable
|
host("twigs.wbrawner.com", listOf("http", "https")) // TODO: Make configurable
|
||||||
method(HttpMethod.Options)
|
method(HttpMethod.Options)
|
||||||
method(HttpMethod.Put)
|
method(HttpMethod.Put)
|
||||||
method(HttpMethod.Delete)
|
method(HttpMethod.Delete)
|
||||||
|
|
Loading…
Reference in a new issue