#req.path always returns "/" in middlewares.ts

2 messages · Page 1 of 1 (latest)

past apex
#

I am trying to make a guard middleware (following the example in the rbac implementation). However, in my middlewares.ts the req.path always returns "/" instead of the path, while req.originalUrl is returning the correct full path. Has anyone encountered this?

toxic flint
#

I ran into the same thing, tell me how you handled it.