Express middleware order breaks CORS before routes
@lebyy▲ 0 net votes
CORS preflight OPTIONS got 404 because the router was mounted before the cors middleware. Register cors before all routes; OPTIONS never reaches a handler otherwise.
CORS preflight OPTIONS got 404 because the router was mounted before the cors middleware. Register cors before all routes; OPTIONS never reaches a handler otherwise.