1. 防止破解者直接抓包盗取应用程序关键 API
2. 有 API,且不想将 API 暴露给前端
https://api.thecatapi.com/v1/images/search?size=full
https://api.thedogapi.com/v1/images/search?size=full
{"args":{},"data":"","files":{},"form":{"{\"name\":\"J
ohn Doe\",\"age\":30,\"city\":\"New
York\"}":""},"headers":{"host":"postman-echo.com
","x-request-start":"t1734532438.000","connection
":"close","content-length":"46","x-forwarded-proto
":"https","x-forwarded-port":"443","x-amzn-trace-i
d":"Root=1-6762dd55-5629cb714dc25ce2198af3f0
","user-agent":"Mozilla/5.0 (Windows NT 6.1;
WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/50.0.2661.87
Safari/537.36","accept":"*/*","referer":"https://po
stman-echo.com/post","accept-language":"zh-cn",
"content-type":"application/x-www-form-urlencod
ed","cache-control":"no-cache"},"json":{"{\"name\
":\"John Doe\",\"age\":30,\"city\":\"New
York\"}":""},"url":"https://postman-echo.com/post
"}