Micro channel small program development process, micro channel small program as long as there is a network request must use the server interface, so you need to add the server domain name in the micro channel small program management platform, and add the domain name must be a legitimate and valid domain name, or it will not be set up successfully.

If no legitimate domain name is configured in the production environment, it cannot be accessed normally. In this case, you need to add the server domain name to the whitelist of the server domain name in the wechat applet background management system. Then this section will introduce the steps and methods of configuring applets to add legitimate domain names, as shown in the following steps.

1. Open the official website of wechat public platform, log in to wechat mini program account, and then enter the main interface of wechat mini program management.

2. Find the “</> Development” option in the left menu bar of the main interface of wechat mini program.

Third, in the “</> Development” module, find the “development Settings” option, drop down to find the “server domain name” module.

4, the first time to set the server domain name, there will be a “start configuration” button, click to enter.

Five, before entering the configuration server information, you need to confirm the identity, and the administrator needs to scan the code for identity authentication.

 

Six, the administrator identity authentication, enter the “configure server information” module, generally set the first option “request legitimate domain name” inside the domain name, if you have special requirements or according to the actual situation to set the following options legitimate domain name Settings.

7. After filling in the domain name information, click the “Save and Mention” button below to complete the setting.

Eight, after setting the small program server domain name, if you want to modify the server domain name or delete the server domain name, still enter the “</> development” module, and then enter the server domain name Settings section for operation Settings.

The above is all the content of this chapter. Welcome to pay attention to the wechat public account of Sanzhan “iOS development by Sanzhan”, and the Sina Weibo account of Sanzhan “Sanzhan 666”, welcome to pay attention to it!