VerifyCsrfToken.php 547B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Http\Middleware;
  3. use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
  4. class VerifyCsrfToken extends Middleware
  5. {
  6. /**
  7. * The URIs that should be excluded from CSRF verification.
  8. *
  9. * @var array
  10. */
  11. protected $except = [
  12. "/login",
  13. "/loginOut",
  14. "/checkLogin",
  15. "/super/*",
  16. "/app/*",
  17. "/act/*",
  18. //API路由
  19. "/api/*",
  20. //AghApi路由
  21. "/agh/*",
  22. //20180625 接口路由重写
  23. "/*"
  24. ];
  25. }