Solve the problem that Charles map local cannot be converted!

Charles map local

Charles map local
When we execute Charles as above

And can’t get the Data in the list.json file

Solution:
1. We want to compareIP in the localhost domain namewithIP address in my computerIs it consistent

2.localhost: Click to query -> own localhost address
localhost IP

3. Look at the IP address of our computer again
The IP address of my computer in Charles
. 4. The problem is here, because the IP addresses pointed to by the two are completelyDifferent

So I can't get the correctlist.json file

5. Finally put the map local in Host dataChange to the IP address of your computer
map local correct IP address


6. Then I will give a hint at the end:
that is when the page is loaded on the web page, localhost:3000it won't work!
Because your localhost and IP address are completely different
localhost
7. So we have to modify this URL and write it as你的IP地址:3000
IP

In this way, you can get the data of the list.json file.
If you have any questions, please leave a message below~

Guess you like

Origin blog.csdn.net/weixin_43814775/article/details/106461061