VerifyCsrfToken.php 468 B

123456789101112131415161718192021222324
  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. //上传图片
  13. 'api/imgupload/',
  14. //上传项目文件
  15. 'api/project/files/upload/',
  16. //汇报提交
  17. 'api/report/template/',
  18. ];
  19. }