19.

【Laravelエラー】Invalid request (Unsupported SSL request)

ページの作成
テンプレートを更新

ページの作成

親となるページを選択してください。

ページは必ず何かしらの親ページに紐づきます。
親ページに紐づくページを子ページといいます。
例: 親=スポーツ, 子1=サッカー, 子2=野球

子ページを親ページとして更に子ページを作成することも可能です。
例: 親=サッカー, 子=サッカーのルール

親ページはいつでも変更することが可能なのでとりあえず作ってみましょう!

エラー内容

Invalid request (Unsupported SSL request)

 

発生条件/原因/対処法

以下のコマンドを実行して起動した後、何かしらのURLにアクセスした後に発生するエラー。

php artisan serve

 

ローカル環境の場合、URLが意図せずhttpsになっていないかどうか確認すること。

なっている場合はhttpにすればOK。

 

Barryvdh\Debugbar\ServiceProvider」を使えるようにするため以下のコマンドを実行する。

composer require barryvdh/laravel-debugbar --dev

 

AppServiceProvider.php」に以下の記述を追加することで解決する。

public function register()
{
    //check that app is local
    if (!$this->app->isLocal()) {
        //else register your services you require for production
        $this->app['request']->server->set('HTTPS', true);
    }
}

 

AppServiceProvider.php」に以下の記述を追加することで解決する。

public function register()
{
    if ($this->app->isLocal()) {
        $this->app->register('Barryvdh\Debugbar\ServiceProvider');
    } else {
        $this->app['request']->server->set('HTTPS', true);
    }
}

子ページ
子ページはありません
同階層のページ
  1. SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost'
  2. Add [~] to fillable property to allow mass assignment on [App\~].
  3. PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in ~
  4. Changing columns for table "~" requires Doctrine DBAL; install "doctrine/dbal"
  5. MethodNotAllowedHttpException No message
  6. Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found
  7. production.ERROR: No application encryption key has been specified.
  8. Dotenv values containing spaces must be surrounded by quotes.
  9. Laravel \ Socialite \ Two \ InvalidStateException
  10. The page has expired due to inactivity. Please refresh and try again.
  11. Failed to clone https://github.com/symfony/thanks.git via https, ssh protocols, aborting.
  12. Illegal offset type
  13. Cannot access protected property Illuminate\Http\Request::$...
  14. Emitted value instead of an instance of Error
  15. 画像保存時にInternal Server Error
  16. Failed to authenticate on SMTP server with username ...
  17. PostTooLargeException
  18. Database hosts array is empty.
  19. Invalid request (Unsupported SSL request)
  20. does not comply with psr-4 autoloading standard. Skipping.
  21. Sydney top independent escorts
  22. MySQLのSTR_TO_DATE関数を使用するとnullが返却される問題

最近の質問

コメント一覧

コメントがありません

ログインしなければコメント投稿はできません。