600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > Request header field storeid is not allowed by Access-Control-Allow-Headers in preflight response.

Request header field storeid is not allowed by Access-Control-Allow-Headers in preflight response.

时间:2024-05-17 11:56:38

相关推荐

Request header field storeid is not allowed by Access-Control-Allow-Headers in preflight response.

一、问题二、修改

一、问题

header中加入自定义字段storeid,前端调接口,报错提示:Request header field storeid is not allowed by Access-Control-Allow-Headers in preflight response.大概意思是:在请求头中不允许使用字段storeid

二、修改

//允许在header中传参数:storeidheader("Access-Control-Allow-Headers: token, Origin, X-Requested-With, Content-Type, Accept, storeid");

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。