https://kotlinlang.org logo
Title
c

coder82

09/23/2019, 11:10 AM
It always responds with 403 forbidden... can't figure out why, it doesn't make it through the pipeline
b

bitkid

09/23/2019, 11:41 AM
try adding
install(CORS) { method(HttpMethod.Options) header(HttpHeaders.AccessControlAllowOrigin) header(HttpHeaders.Origin) header(HttpHeaders.Authorization) header(HttpHeaders.ContentType) header(HttpHeaders.Accept) header(HttpHeaders.Referrer) header(HttpHeaders.Host) header(HttpHeaders.AcceptLanguage) header(HttpHeaders.UserAgent) header(HttpHeaders.AcceptEncoding) header(HttpHeaders.XForwardedFor) header(HttpHeaders.XForwardedHost) }
just pick the headers you need
c

coder82

09/23/2019, 10:36 PM
thx