Files
2023-11-24 22:35:41 +01:00

372 B

Congratulations! You have configured @adonisjs/shield package successfully. Just make sure to add the following middleware inside the start/kernel.ts file.

Server.middleware.register([
  () => import('@ioc:Adonis/Core/BodyParser'),
  () => import('@ioc:Adonis/Addons/Shield')
  '...',
])

The middleware must be right after the BodyParser middleware.