请求的资源上不存在“访问控制允许源”标头.因此,不允许访问源“http://localhost:4400”

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4400' is therefore not allowed access

本文关键字:4400 不允许 访问 http localhost 标头 资源 不存在 访问控制 请求 许源      更新时间:2023-09-26

XMLHttpRequest 无法加载 http://localhost:5100/MYService.asmx/Myweb-Method。请求的资源上不存在"访问控制允许源"标头。因此,不允许访问源"http://localhost:4400"。

我在科尔多瓦视觉工作室有问题。

我该怎么办,请给我一些建议

从谷歌浏览器下载 Allow-Control-Allow-Origin 应用程序。在已安装的应用程序中启用 CORS 并执行代码。这将暂时允许浏览器中的 CORS。