laravel-magic-login icon indicating copy to clipboard operation
laravel-magic-login copied to clipboard

PRODUCTION FAIL WITH 403 INVALID SIGNATURE.

Open code-jambo opened this issue 10 months ago • 2 comments

Hey, I am facing an issue with the package, it works fine on localhost but once the app is on a live server it does not authenticate instead fails with "403 INVALID SIGNATURE."

code-jambo avatar Apr 05 '24 17:04 code-jambo

@code-jambo I've solved it by adding this line from laravel docs: https://laravel.com/docs/11.x/requests#trusting-all-proxies

In my case, I am deploying to fly.io which means it must be falling under the "cloud" load balancer provider category that the documentation is saying this piece of code is for.

Let me know if it solves your issue.

RicardoPBarbosa avatar Apr 17 '24 18:04 RicardoPBarbosa

Hi @code-jambo, what @RicardoPBarbosa should work!

In case you're using a version of Laravel prior to 11.x, all you have to do is update the TrustProxies.php middleware file: protected $proxies = '*';

riccardodallavia avatar Apr 19 '24 09:04 riccardodallavia