小程序webview中需要调用wx接口,所以在web项目引入通过script标签引入jssdk
在本地环境可以正常引入,但是在线上环境下会报跨域问题
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域名,也关联了小程序和公众号,但是还是不行
跨域让后台人员看看,还是配置的不对