Cors issue / Breaking change
Pre-release
Pre-release
Changes
This new release has a breaking change: the Vite middleware must be added in your own kernel.ts
like this :
// file: kernel.ts
// ...
server.use([
// ...
() => import('@adonisjs/cors/cors_middleware'),
() => import('@adonisjs/vite/vite_middleware'),
])
This was needed because otherwise Vite's CORS settings and @adonisjs/cors
could conflict. See #14 and #13 for more detailed explanations.