jeudi 28 juin 2018

Why request is not passing to Nginx + Laravel basic auth?

I have a server with Nginx and Laravel. Laravel protect one special request with auth basic middleware

$router->group([

    'prefix' => 'special',

], function () use ($router) {

    $router->group([

        'middleware' => [ 'auth.basic', ],

    ], function () use ($router) {

        $router->get('/', 'SpecialController@index');
    });
});

If I'am getting https://example.com/special with browser - all ok. Browser request authorization from me, then pass to controller.

But if I'am emulate request with Postman, it is not working. Request performing is so long, I did not wait until the end.

Why it can happening? Earlier web server was Apache and request works fine.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire