It always responds with 403 forbidden... can't fig...
# ktor
c
It always responds with 403 forbidden... can't figure out why, it doesn't make it through the pipeline
b
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
thx