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:
William Brawner 2021-12-18 08:56:40 -07:00
parent 04842b6dba
commit d3de43dcd9

View file

@ -108,7 +108,7 @@ fun Application.moduleWithDependencies(
})
}
install(CORS) {
host("twigs.wbrawner.com") // TODO: Make configurable
host("https://twigs.wbrawner.com") // TODO: Make configurable
method(HttpMethod.Options)
method(HttpMethod.Put)
method(HttpMethod.Delete)