Are they api routes, if so no session used. Otherwise check your storage permissions.
Frustrating 419 | Page Expired on Login using Jetstream
I have a laravel 8 application that I'm using Nova on. I've also implemented Jetstream login so that I can use it's tokens and auth system for an external application.
I've setup nova's auth driver in nova.php config to use Jetstream as it's auth driver.
If I run the application locally on localhost all works really well.
Once I deploy the application to production I always get 419 | Page Expired when trying to login using the same browser. I've tried clearing my cache, private browsing. The only time I can login without getting the error is if I use a completely different browser such as FF or Edge on windows. I use Chrome 99% of the time.
I'm really at a loss for why this is happening and have run out of ideas on why I continue to get this 419 | Expired message. To be clear, I see the login form, fill it out and click submit. Then I receive the 419 message.
THANK YOU !!! THIS WORKED.
In AppServiceProvider boot method I put the following.
public function boot()
{
if($this->app->environment('production') || $this->app->environment('staging'))
{
\URL::forceScheme('https');
}
}
Please or to participate in this conversation.