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

[Tips] Ajax error: Access to restricted URI denied

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 15:48:59
Original
1579 people have browsed it

在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


Related labels:
Statement of this Website
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
Latest Issues
Centos7 fails to compile and install Python 3.5.1
From 1970-01-01 08:00:00
0
0
0
Ionic image loading tips
From 1970-01-01 08:00:00
0
0
0
angular.js - angular form formatting tips
From 1970-01-01 08:00:00
0
0
0
HTML 5/CSS Percent Height Tips
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template