Error: URL invalid when wechat applet is about to load data using wx.request.

The prompt reads:

Not in the list of valid request domain names, please refer to the documentation

To solve the problem

You need to log into the background of wechat mini program.

Select development Settings in development.

In the server domain name configuration screen, modify the configuration of your Request domain name.

According to official guidelines, the valid domain name of request must use HTTPS

If your domain name does not already have an HTTPS CA signature, please do so first.

[! [2020-07-30_13-51-25](https://cdn.ossez.com/discourse-uploads/optimized/1X/77667d4b5f4dc263ecf43806bca782adb2c4890e_2_69 0x270.jpeg)](https://cdn.ossez.com/discourse-uploads/original/1X/77667d4b5f4dc263ecf43806bca782adb2c4890e.jpeg “The 2020-07-30 _13-51-25)”

Then save and exit.

In applets, you need to exit and refresh the page.

When the page is refreshed again, you should not encounter a domain name error.

[! [domain-data-01](https://cdn.ossez.com/discourse-uploads/original/1X/87455ee38bc6a08a6550445ea3081c7a4e8c83b9.png)](http s://cdn.ossez.com/discourse-uploads/original/1X/87455ee38bc6a08a6550445ea3081c7a4e8c83b9.png “domain-data-01”)

[https://www.ossez.com/t/wx-request-url/321](https://www.ossez.com/t/wx-request-url/321)