Top "Middleware" questions

Middleware is computer software that provides services to software applications beyond those available from the operating system.

disable web middleware for specific routes in laravel 5.2

I want to guest users have access to home page but in built in authentication process laravel redirects to login …

php laravel authentication middleware laravel-5.2
NodeJS + Express: How to secure a URL

I am using latest versions of NodeJS and ExpressJS (for MVC). I usually configure my rest paths like this, for …

node.js authentication login express middleware
How do I access the Rack environment from within Rails?

I have a Rack application that looks like this: class Foo def initialize(app) @app = app end def call(env) …

ruby-on-rails ruby rack middleware
Express app.get documentation

I am looking for some documentation on the app.get function of express.js. app.get( '/path', middleware(), function(…

node.js express middleware
Passing parameters to middleware in Laravel

Let's say I have a route pointing to middleware; Route::get("/user/{id}", ['middleware' => 'auth', function ($id) { }]); And my …

php laravel laravel-5 middleware
How throw forbidden exception from middleware in laravel5?

I am writing a middleware in laravel 5. I want to throw a forbidden exception with code 403 from middleware. My middleware …

php exception laravel middleware laravel-5
Redirect to HTTPS

What is the recommend way to redirect to HTTPS all incoming requests that are not secure. Do I need to …

c# redirect https asp.net-core middleware
How to put middleware in it's own file in Node.js / Express.js

I am new to the whole Node.js thing, so I am still trying to get the hang of how …

node.js express middleware
Grouping routes in Express

We can group our routes like this in Laravel: Route::group("admin", ["middleware" => ["isAdmin"]], function () { Route::get("/", "AdminController@index"); …

node.js express middleware
ASP.NET MVC 6 AspNet.Session Errors - Unable to resolve service for type?

Alright, so recently I've been having a lot of trouble using the new Microsoft.AspNet.Session middleware for ASP.NET …

c# asp.net session middleware asp.net-core-mvc