|
@@ -27,7 +27,9 @@ class AuthServiceProvider extends ServiceProvider
|
|
$this->registerPolicies();
|
|
$this->registerPolicies();
|
|
|
|
|
|
if(config('pixelfed.oauth_enabled')) {
|
|
if(config('pixelfed.oauth_enabled')) {
|
|
- Passport::routes();
|
|
|
|
|
|
+ Route::group(['middleware' => 'cors'], function() {
|
|
|
|
+ Passport::routes();
|
|
|
|
+ });
|
|
Passport::tokensExpireIn(now()->addDays(15));
|
|
Passport::tokensExpireIn(now()->addDays(15));
|
|
Passport::refreshTokensExpireIn(now()->addDays(30));
|
|
Passport::refreshTokensExpireIn(now()->addDays(30));
|
|
Passport::enableImplicitGrant();
|
|
Passport::enableImplicitGrant();
|