search
HomeWeChat AppletMini Program DevelopmentWhere can I find the legal domain name for configuration requests in the WeChat mini program?

WeChat Mini Program - To configure the legal domain name request and the frequently encountered Douban api request 403 problem, you must first enter the homepage of the official website of the WeChat public platform, then click Settings in the lower right corner, and then look at the AppID and server in the development settings domain name for subsequent operations.

1. Configuring the legal domain name of the request

1 .Enter the homepage of the official WeChat public platform (mp.weixin.qq.com)
WeChat public platform|mini program homepage

Where can I find the legal domain name for configuration requests in the WeChat mini program?

2. Settings in the lower right corner
Where can I find the legal domain name for configuration requests in the WeChat mini program?

3. Development settings
There are AppID and server domain name
Where can I find the legal domain name for configuration requests in the WeChat mini program?

Where can I find the legal domain name for configuration requests in the WeChat mini program?

2. Douban api problem

Always encounter Douban api request 403 problem
https://api.douban.com
( https://api.douban.com/v2/mov...
Unsuccessful use
The solution for netizens isReplace the original Douban api with the following URL
https: //douban.uieee.com and http://t.yushu.im/v2/movie/to...
Where can I find the legal domain name for configuration requests in the WeChat mini program?

For example, the interface of the top 250 Douban movies:
(https ://douban.uieee.com/v2/m...
(http://t.yushu.im/v2/movie/to... These domain names do not have security verification and are not https. Therefore, in the mini program It cannot be added to the legal domain name. So I only used the first https://douban.uieee.com.

Where can I find the legal domain name for configuration requests in the WeChat mini program?

Where can I find the legal domain name for configuration requests in the WeChat mini program?

Solution to the problem of unsuccessful interface api request:

The error is as shown in the figure:
Where can I find the legal domain name for configuration requests in the WeChat mini program?

Solution:
Modify the header in wx.request
//We need to modify the header in the request:
header:{

      // "Content-Type":"application/json"
       //这里修改json为text  ,因为原来json请求会返回400(bad request)
      **"Content-Type": "application/text"**
     },

Where can I find the legal domain name for configuration requests in the WeChat mini program?

#Rendering after successful solution:
Where can I find the legal domain name for configuration requests in the WeChat mini program?

Related recommendations:

WeChat Mini Program Development Practical Tutorial Development and Running WeChat Mini Program

How to develop WeChat Mini Program WeChat Mini Program development high-definition graphic tutorial

The above is the detailed content of Where can I find the legal domain name for configuration requests in the WeChat mini program?. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft