mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
Only authorize allowed method
This commit is contained in:
parent
6b9c4d7629
commit
7b09d9f539
@ -128,6 +128,7 @@ module.exports = strapi => {
|
||||
|
||||
// Let the router use our routes and allowed methods.
|
||||
strapi.app.use(strapi.router.middleware());
|
||||
strapi.app.use(strapi.router.router.allowedMethods());
|
||||
|
||||
// Handle router errors.
|
||||
strapi.app.use(function * (next) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user