Skip to content

Instantly share code, notes, and snippets.

@mark123jesper
Created March 1, 2022 09:57
Show Gist options
  • Save mark123jesper/b64f88942fc45b4a0988134677ddd349 to your computer and use it in GitHub Desktop.
Save mark123jesper/b64f88942fc45b4a0988134677ddd349 to your computer and use it in GitHub Desktop.
[Solution] Laravel Fortify - Invalid Signature
if($this->app->environment('production'))
{
\URL::forceScheme('https');
}
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Request;
use Fideloper\Proxy\TrustProxies as Middleware;
class TrustProxies extends Middleware
{
protected $proxies = '*';
protected $headers = Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_HOST | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment