Join Slack
It always responds with 403 forbidden... can't figure out why, it doesn't make it through the pipeli...
# ktor
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
bitkid
09/23/2019, 11:41 AM
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) }
bitkid
09/23/2019, 11:41 AM
just pick the headers you need
c
coder82
09/23/2019, 10:36 PM
thx
8
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by