跨域请求options返回500是怎么回事

浏览:1308 发布日期:2021/02/10 分类:ThinkPHP6专区
调用了AllowCrossDomain::class中间件,
在请求头中加入了Authorization,
登录的时候post没有问题,
做后续的post就报500

Access to xmlHttpRequest at 'http://localhost/tp6-vue-authz/public/api/group' from origin 'http://localhost:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
最佳答案
评论( 相关
后面还有条评论,点击查看>>