https://kotlinlang.org logo
#ktor
Title
# ktor
j

jeggy

11/13/2018, 9:40 AM
Someone that could help me get CORS to work? I'm getting a OPTIONS request and I want to allow it, but ktor keeps returning 403 Forbidden. I have installed the CORS module, but most likely configured it wrong.
I figured it out. I just needed to look at request headers and saw that it was using
HttpHeaders.ContentType
and
HttpHeaders.Authorization
and needed to add them to the CORS Configuration
💯 1
4 Views