The WeChat third-party platform builds a PC authorization link, and directly opens the error report: the domain name of the authorization entry page: empty
1. WeChat third-party platform builds a PC authorization link, and directly opens the error: error Please confirm the domain name of the authorized entry page, which is the same as the domain name of the callback page after authorization, and both must be the same as the authorization page domain name filled in when applying for a third-party platform. The domain name of the authorization entry page is: empty. as shown in Figure 1
2. In the existing programs, open the authorization entry page first, and then jump to the authorization link on the PC terminal. No errors are reported, and the QR code to be scanned normally displays. Carefully compare the differences between the two, and the page of the QR code is displayed normally, and the request header includes: Referer. as shown in Figure 2
3. Carefully compare the differences between the two, and the page of the QR code is displayed normally, and the request header includes: Referer. The error page does not contain: referr. as shown in Figure 3
4. Official document: The third-party platform-based service provider builds an authorization link and puts it on its own website. After the user clicks, the authorization page will pop up. Decided to put the authorization link on the PC side under the authorization page domain name. Add a link at http://console.dev.chinamcloud.cn/ccpauth . as shown in Figure 4
<a href="https://mp.weixin.qq.com/cgi-bin/componentloginpage?component_appid=wxd 98c58b273d21bdf&pre_auth_code=preauthcode@@@v8lwmb5dqykvfjl8wuokpwyn9zmht -n8coz7b7xxhkqth3qpamjjpsbk5q6lwgxs7y49-h_zefijqdm8iecpvw&redirect_uri=ht tps://console.dev.chinamcloud.cn/ccpauth&auth_type=1">PC-side authorization link</a>
5. Right-click: the authorization link on the PC side, open the link in the new tab. If no error is reported, the QR code to be scanned normally displays, and its request header includes: Referer. as shown in Figure 5
6. Check HTTP Headers on the MDN Web Docs -> Referer. The Referer request header contains the address of the source page of the current request page, which means that the current page is entered through the link in this source page. as shown in Figure 6





