How does Wechat developer tool simulate mobile phone ua to send requests?

Mini Program is developed by Wechat developer tool. Sending an API request token to the backend will return "Token creation requests cannot be accessed from a browser.", which cannot be obtained on the browser. You can only upload a preview of the code and get it on the phone.
I think the backend should be judged by ua. How can Wechat"s developer tools modify it?


you don't understand the meaning of this error:
this is when you send a request, you need to get Wechat user information. But the browser does not have Wechat user information, so this prompt.
so there is a problem with your operation, this step request should be sent by Mini Program to api. Not backstage.

Menu