微信授權驗證


頁面   : 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  ;  瀏覽器  直接     帶這個參數 請求 后 可以正常打開

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM