收藏
回答

引入jssdk后遇到跨域问题,请问有人遇到吗?

web项目在本地环境可以正常引入,但是在线上环境下会报跨域问题

Access to script at 'https://res.wx.qq.com/open/js/jweixin-1.6.0.js' from origin 'xxx.xxx.tech' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://open.weixin.qq.com' that is not equal to the supplied origin.

线上服务器Access-Control-Allow-Origin也设置了*,也已经在公众号设置里JS接口安全域名中加入web域名

回答关注问题邀请回答
收藏
登录 后发表内容
问题标签