Related literature for this article:
https://developers.weixin.qq.com/community/develop/doc/00084a350b426099ab46e0e1a50004?%2Fblogdetail%3Faction=get_post_info
question:
Encountered a problem when developing a small program
When I used the component test of the official online versionweb-view
of the applet, I was prompted: "This page cannot be opened, and https://xxxxxx is not supported. Please report to the developer in "More -> Feedback and Complaint" in the upper right corner of the applet."
The strange thing is that both " debugging on real device " and " development mode " can use web-view
the component to access the path I need. Only the " trial version " and " online version " will have this error message.
reason:
The WeChat applet of the enterprise entity can only support jumping to any external link after configuring the business domain name . (Which external link needs to be jumped to, configure that link as a business domain name.)
solve:
If you also encounter this problem:
How to configure business domain name for WeChat applet ?
(1) From the WeChat public platform, log in to the account of the WeChat Mini Program.
(2) After logging in, go to [Settings-Third-Party Settings-Third-Party Platform Authorization Management] to cancel the authorization of all third-party platforms.
(3) Then enter [Development - Development Settings - Business Domain Name] to start configuring the business domain name. (The configuration of the business domain name requires the applet administrator to scan the code for verification)
(4) Enter the domain name to be redirected, and then click to download the verification file, and place the file in the root directory of the domain name to be redirected.
Note: The business domain name (that is, the domain name that needs to be redirected) needs to go through ICP filing, and the new filing domain name can only be configured after 24 hours. The domain name format only supports English uppercase and lowercase letters, numbers and "-", and does not support IP addresses.
(5) After the verification file is placed, click the Save button. After the verification is successful, the entered domain name will be displayed in the business domain name, which means that the business domain name configuration is successful.
(6) After the business domain name is successfully configured, re-authorize the WeChat applet account to the light application applet, and then you can set the jump to the external link (that is, the successfully configured business domain name) in the light application applet.
Detailed operation of configuring business domain name
Follow the instructions to download the file.
Please click to download the validation file.
At this time, a txt
file . We need to txt
pass the file to the backend and let the backend configure the server until the txt
file
Example: If the business you want to save is https://test.com/
, and the downloaded verification file is AbC.txt
, you need to ensure that https://test.com/AbC.txt
it can be accessed.
For specific rules, please refer to the specific guidelines. For detailed requirements, configure them according to the requirements.
configuration complete
web-view
After the configuration is complete, you can access the url through the component in the online mode ~