Explorar el Código

Merge pull request #5428 from pixelfed/staging

Update VerifyCsrfToken middleware, add oauth token. Fixes #5426
daniel hace 6 meses
padre
commit
bf0a82f884
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/Http/Middleware/VerifyCsrfToken.php

+ 2 - 1
app/Http/Middleware/VerifyCsrfToken.php

@@ -12,6 +12,7 @@ class VerifyCsrfToken extends Middleware
      * @var array
      */
     protected $except = [
-        '/api/v1/*'
+        '/api/v1/*',
+        'oauth/token'
     ];
 }