Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1499

Https requests "invalid request (unsupported ssl request)"

$
0
0

I'm having problems with Https requests in Laravel 5.1

I created a Middleware like this:

<?phpnamespace Subway\Http\Middleware;use Closure;use App;use Redirect;class UseSSL{    public function handle($request, Closure $next)    {          if (!$request->secure() && env('APP_ENV') === 'local')          {              return redirect()->secure($request->getRequestUri());          }          return $next($request);    }}

and my routes are like this:

Route::group(['middleware' => 'use.ssl'], function () {// All other routes here});

I registered the middleware in kernel.php

protected $routeMiddleware = ['use.ssl' => \Subway\Http\Middleware\UseSSL::class,    ];

When trying to get to any url, the page doesn't load and the terminal is returning this error:

[Thu Nov 12 11:09:30 2015] ::1:50728 Invalid request (Unsupported SSL request)

What's the problem with this?


Viewing all articles
Browse latest Browse all 1499

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>