thinkphp 5 跨域问题解决

版本:5.1.41 LTS 从网上搜到好多从/public/index.php 添加heade信息,或者用中间件,或者添加behavior操作,可以做到解决跨域问题,但是亲身试验了都不行,今天刚找了一个,可以使用,放在这里 header('Access-Control-Allow-Credentia
posted @ 2024-03-14 12:28  大尹  阅读(340)  评论(0编辑  收藏  举报