VS Code 中的连接被拒绝

发布于 2025-01-19 05:10:34 字数 139 浏览 2 评论 0原文

我是 vs code 的新手,当我尝试 POST 时收到此错误,有人可以告诉我哪里错了吗? 在此处输入图像描述

我已尝试关闭防火墙,但仍然没有任何反应

i'm a newbie in vs code and get this error when I try to POST, can anyone please tell me where did I wrong? enter image description here

I've tried to get off my firewall but still nothing happens

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

↙温凉少女 2025-01-26 05:10:34

它很长一段时间,但也许其他人也会遇到这个错误。
我也是新手,就我的情况而言,我在localhost上使用https而不是http(主机和应用程序在设置中定义

GET https://{{host}}/{{app}}

GET http://{{host}}/{{app}}

Its long time but maybe someone else also get this error.
I am also newbie and in my case problem was that, I used https instead of http on localhost (host and app is defined in settings.json if someone wonder)

GET https://{{host}}/{{app}}

correct code is like this

GET http://{{host}}/{{app}}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文