微信授权验证

页面   : https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html

页面中的 测试链接

https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx520c15f417810387&redirect_uri=https%3A%2F%2Fchong.qq.com%2Fphp%2Findex.php%3Fd%3D%26c%3DwxAdapter%26m%3DmobileDeal%26showwxpaytitle%3D1%26vb2ctag%3D4_2030_5_1194_60&response_type=code&scope=snsapi_base&state=123#wechat_redirect

转码 后的链接

appid=wx520c15f417810387
redirect_uri=https%3A%2F%2Fchong.qq.com%2Fphp%2Findex.php%3Fd%3D%26c%3DwxAdapter%26m%3DmobileDeal%26showwxpaytitle%3D1%26vb2ctag%3D4_2030_5_1194_60
response_type=code
scope=snsapi_base
state=123#wechat_redirect

//解码

appid=wx520c15f417810387
redirect_uri=https://chong.qq.com/php/index.php?d=&c=wxAdapter&m=mobileDeal&showwxpaytitle=1&vb2ctag=4_2030_5_1194_60
response_type=code
scope=snsapi_base
state=123#wechat_redirect

未修改  浏览器   请求头    ;  提示   

请在微信客户端打开链接

修改 浏览器   请求头后     ;  提示   

页面 直接 空白

在手机中可以打开

浏览器 直接 打开    链接 :  https://chong.qq.com/php/index.php?d=&c=wxAdapter&m=mobileDeal&showwxpaytitle=1&vb2ctag=4_2030_5_1194_60  提示

getpanel?id=147:1160 Mixed Content: The page at 'https://chong.qq.com/tws/entra/getpanel?id=147' was loaded over HTTPS, but requested an insecure script 'http://static.gtimg.com/js/version/entra.entra-H5.20140217160654.js?t=2021071510'. This request has been blocked; the content must be served over HTTPS.

手机 打开  链接 (在微信app内置浏览器中)   https://chong.qq.com/php/index.php?d=&c=wxAdapter&m=mobileDeal&showwxpaytitle=1&vb2ctag=4_2030_5_1194_60       正常打开

 

问题:   PC浏览器 如何模拟    手机 微信内置浏览器 并打开所请求页面?

 

通过抓包  发现  

请求  参数 时候  

xxx.html, Query:code=091x********0R&state=123  ;  浏览器  直接     带这个参数 请求 后 可以正常打开

 

posted @ 2021-01-07 14:59  enych  阅读(907)  评论(0编辑  收藏  举报