-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken NestJs middleware #20
Comments
anyone? @wojtek-krysiak ? |
My solution for now is to initialize in App.module.js with:
and then in CustomAdminJsCustomLoader copy ExpressLoader without the reordering |
Hi, I am looking for a similar solution but as soon as I did that this error happened:
I was looking for a way to add a middleware for mitigating session fixation... Any inputs of how I can get add a middleware to the adminjs nestjs setup ? |
Here's a modified version that inserts adminjs after any middleware applied to the rootPath. I have not tested it much but it seems to be working with nestjs applied middleware.
|
Using NestJs Middleware Consumers is broken with this module. I'm trying to globally add middleware to the admin module with something like:
But the middleware is never executed. I'm reasonably sure this is due to the middleware reordering in express.loader.ts because when I comment it out, the middleware is executed as expected.
The text was updated successfully, but these errors were encountered: