Skip to content

Cors issue / Breaking change

Pre-release
Pre-release
Compare
Choose a tag to compare
@Julien-R44 Julien-R44 released this 30 Mar 14:56

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.

Commits

v3.0.0-10...v3.0.0-11