laravel自定义中间件解决跨域问题 参考文章: (1)laravel自定义中间件解决跨域问题 (2)https://www.cnblogs.com/swallowli66/articles/10946821.html 备忘一下。