XMLHTTPRequest 中的访问被拒绝
我正在使用 XMLHttpRequest 打开 URL。当我在本地主机上运行我的应用程序时,它可以正常工作。但是当我想从我的电脑运行时,它会生成访问被拒绝错误。这是因为服务器上的安全设置吗?我应该改变什么来解决这个问题?
I am using an XMLHttpRequest to open a URL. when I run my application on localhost, it works properly. but when I want to run form my pc it generates access denied error. Is this something because of security settings on the server? what should I change to fix the problem?
XMLHttpRequest 纯粹基于 http,适用于本地主机/主机地址。
XMLHttpRequest is purely http based and works with local host/host address.