请问解决了吗。相同问题
生成的微信小程序二维码scene参数和我传的参数不一致使用B接口:https://api.weixin.qq.com/wxa/getwxacodeunlimit 生成小程序二维码,传入参数是:"{"page":"pages/class/class","scene":412213075488489472}" 但生成的二维码,小程序获取到的scene不是412213075488489472。 奇怪的是:小程序获取到测参数是:http请求日志中的"Content-disposition: attachment; filename="_412213075488489536"[\r][\n]" 难道是微信的坑? 以下是调用微信接口的http请求日志: http-outgoing-24 >> "POST /wxa/getwxacodeunlimit?access_token=token HTTP/1.1[\r][\n]" - http-outgoing-24 >> "Content-Length: 55[\r][\n]" - http-outgoing-24 >> "Content-Type: application/json[\r][\n]" - http-outgoing-24 >> "Content-Encoding: utf-8[\r][\n]" - http-outgoing-24 >> "Host: api.weixin.qq.com[\r][\n]" - http-outgoing-24 >> "Connection: Keep-Alive[\r][\n]" - http-outgoing-24 >> "User-Agent: Apache-HttpClient/4.5.5 (Java/1.8.0_151)[\r][\n]" - http-outgoing-24 >> "Accept-Encoding: gzip,deflate[\r][\n]" - http-outgoing-24 >> "[\r][\n]" - http-outgoing-24 >> "{"page":"pages/class/class","scene":412213075488489472}" - http-outgoing-24 << "HTTP/1.1 200 OK[\r][\n]" - http-outgoing-24 << "Connection: keep-alive[\r][\n]" - http-outgoing-24 << "Cache-Control: no-cache, must-revalidate[\r][\n]" - http-outgoing-24 << "Content-Type: image/jpeg[\r][\n]" - http-outgoing-24 << "Content-disposition: attachment; filename="_412213075488489536"[\r][\n]" - http-outgoing-24 << "Content-Length: 99842[\r][\n]" - http-outgoing-24 << "[\r][\n]"
2023-04-25兄弟问题解决了吗?
急!第三方网页通过微信公众号授权跨域问题?流程: 前端请求后台接口,后台重定向到https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxc7290663e60b3a23&redirect_uri=http%3A%2F%2Fantare.fun%2Fweixin%2Fauth&response_type=code&scope=snsapi_userinfo&connect_redirect=1&state=STATE#wechat_redirect 之后前端会报跨域问题: Access to XMLHttpRequest at 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxc7290663e60b3a23&redirect_uri=http%3A%2F%2Fantare.fun%2Fweixin%2Fauth&response_type=code&scope=snsapi_userinfo&connect_redirect=1&state=STATE#wechat_redirect' (redirected from 'http://antare.fun/weixin/login') from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. 后端已经配置过跨域,其他接口也都能用 回调域名也在公众号中设置过了
2021-12-23