From 0397c959f0187ae5d56bfd6762a60391b87ee73e Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 1 Oct 2019 18:31:05 -0600 Subject: [PATCH] Update AuthServiceProvider --- app/Providers/AuthServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php index 6f077f832..7de25b357 100644 --- a/app/Providers/AuthServiceProvider.php +++ b/app/Providers/AuthServiceProvider.php @@ -27,7 +27,7 @@ class AuthServiceProvider extends ServiceProvider $this->registerPolicies(); if(config('pixelfed.oauth_enabled')) { - Passport::routes(); + Passport::routes(null, ['middleware' => [ \Barryvdh\Cors\HandleCors::class ]]); Passport::tokensExpireIn(now()->addDays(15)); Passport::refreshTokensExpireIn(now()->addDays(30)); Passport::enableImplicitGrant();