Created
March 1, 2022 09:57
-
-
Save mark123jesper/b64f88942fc45b4a0988134677ddd349 to your computer and use it in GitHub Desktop.
[Solution] Laravel Fortify - Invalid Signature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if($this->app->environment('production')) | |
{ | |
\URL::forceScheme('https'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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