Middleware on the client side?

Is it possible to make the middleware run on the client side?
I need it to check authentication towards another service.
Was this page helpful?