ec
02/16/2020, 6:27 PMCORS preflight request doesnt pass access control check
error from my frontend for POST
requests
Eventhough I have, on my backend javalin
app.config.enableCorsForAllOrigins()
app.before { ctx ->
ctx.header(Header.ACCESS_CONTROL_ALLOW_ORIGIN, "*")
ctx.header(Header.ACCESS_CONTROL_ALLOW_METHODS, "POST, GET, OPTIONS, PUT, DELETE")
ctx.header(Header.ACCESS_CONTROL_ALLOW_HEADERS, "Content-Type, Origin, Cache-Control, X-Requested-With")
}