VerifyCsrfToken.php 661 B

123456789101112131415161718192021222324252627282930313233
  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/system/imgupload/',
  14. //上传项目文件
  15. 'api/project/files/upload/',
  16. //上传聊天文件
  17. 'api/chat/files/upload/',
  18. //修改项目任务
  19. 'api/project/task/edit/',
  20. //汇报提交
  21. 'api/report/template/',
  22. //保存文档
  23. 'api/docs/section/save/',
  24. ];
  25. }