Hey I'm getting `CORS preflight request doesnt pas...
# javalin
e
Hey I'm getting
CORS preflight request doesnt pass access control check
error from my frontend for
POST
requests Eventhough I have, on my backend javalin
Copy code
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")
        }