VerifyCsrfToken.php 774 B

123456789101112131415161718192021222324252627282930313233343536373839
  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/system/fileupload/',
  16. //上传项目文件
  17. 'api/project/files/upload/',
  18. //上传聊天文件
  19. 'api/chat/files/upload/',
  20. //修改项目任务
  21. 'api/project/task/edit/',
  22. //汇报提交
  23. 'api/report/template/',
  24. //保存文档
  25. 'api/docs/section/save/',
  26. //钉钉系列
  27. 'api/ding/notice/push'
  28. ];
  29. }