Unsupported SSL request - Php artisan serve

Viewed 7420

After running command php artisan serve it prompt Laravel development server started: http://127.0.0.1:8000 but after running the same address in browser, its showing error 127.0.0.1:49938 Invalid request (Unsupported SSL request)

.env file

APP_URL=http://127.0.0.1:8000/

I have already cleared cache, view, config, routes

1 Answers

Add below code in your app/Providers/AppServiceProvider.php file

public function boot()
{
   if (!$this->app->isLocal()) {
        $this->app['request']->server->set('HTTPS', true);
   }
}
Related