search
HomeWeChat AppletMini Program DevelopmentDetailed explanation of the solution to the error in the legal domain name verification of the WeChat applet

This article mainly introduces the detailed explanation and solutions for the legal domain name verification error of the WeChat mini program. Friends in need can refer to the following

The detailed explanation and solution of the legal domain name verification error of the WeChat mini program Solution

Look at the error:

Detailed explanation of the solution to the error in the legal domain name verification of the WeChat applet

WeChat applet development, what should I do if I encounter this problem?

The reason is that a wx.request request

was initiated and the requested domain name was not set in the WeChat public platform background.

1. Developers manually set it without verification

Whether you have got the App ID or not, I believe many people will do the same thing as me, that is Without further ado, let’s get a general understanding of the documentation, then go directly to github to find the project and try importing it. This is what I did, but I got this error when I first came up. Later I found out that I could actually set up the local development tools myself to not verify the domain name, and it would have no impact at all.
In the last option of "Project", check it and run it.

Detailed explanation of the solution to the error in the legal domain name verification of the WeChat applet

2. The administrator sets the actual project domain name

If it is an actual project development, the administrator needs to set it first. .

The setting steps are as follows:

1. Log in to the WeChat mini program backend as an administrator

Address: http://mp. weixin.qq.com

2. Set the domain name to be requested to the legal domain name

Note: You can fill in multiple request legal domain names. If there are already other valid domain names, Domain name, just add a new one

As shown in the picture:

Detailed explanation of the solution to the error in the legal domain name verification of the WeChat applet

Note: After the request secure domain name is saved and submitted, WeChat will have After caching for a period of time, about 10 minutes later, the requested legal domain name will take effect

Thank you for reading, I hope it can help everyone, thank you for your support of this site!

The above is the detailed content of Detailed explanation of the solution to the error in the legal domain name verification of the WeChat applet. 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 Article

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript 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.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Atom editor mac version download

Atom editor mac version download

The most popular open source editor