通过 ngrok 开启映射本地地址,在本机上可以正常访问,而远程调用却访问不通,直接输入网站访问则会报错:You are about to visit talented-poorly-boar.ngrok- free.app,served by 121.xx.xx.xxx.This website is served for free through ngrok.com.You should only visit this website if you trust whoever sent the link to you.(ERR_NGROK 6024)。

我们可以通过一个插件 modHeader modify http header 配置一个全局浏览器的请求头来解决,如下:

在这里插入图片描述

然后调用,即可正常访问。

Logo

欢迎加入DeepSeek 技术社区。在这里,你可以找到志同道合的朋友,共同探索AI技术的奥秘。

更多推荐