Home >Database >Mysql Tutorial >[Tips] Ajax error: Access to restricted URI denied

[Tips] Ajax error: Access to restricted URI denied

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 15:48:591581browse

在ajax调用时出现Access to restricted URI denied的错误,需要检查: 1、是否跨站访问?参考下这个讨论: http://stackoverflow.com/questions/51283/access-to-restricted-uri-denied-code-1012 2、如果是本地资源访问,那么在windows机器上需要注意window

在ajax调用时出现Access to restricted URI denied的错误,需要检查:

1、是否跨站访问?参考下这个讨论:

http://stackoverflow.com/questions/51283/access-to-restricted-uri-denied-code-1012


2、如果是本地资源访问,那么在windows机器上需要注意windows的文件路径是不能用来当作web服务路径的。

检查web根目录,检查URI是否是相对于web根目录的相对路径并可访问(包括用户权限)


iefreer


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn