I'm using .htaccess to rewrite urls and I used html base tag in order to make it work.(我正在使用.htaccess重写网址,我使用了html基本标记以使其正常工作。)
Now, when I try to make an ajax request I get the following error:(现在,当我尝试发出ajax请求时,我收到以下错误:)
XMLHttpRequest cannot load http://www.example.com/login.php
.(XMLHttpRequest无法加载http://www.example.com/login.php
。) No 'Access-Control-Allow-Origin' header is present on the requested resource.(请求的资源上不存在“Access-Control-Allow-Origin”标头。) Origin ' http://example.com
' is therefore not allowed access.(因此,不允许来源“ http://example.com
”访问。)
ask by Th3lmuu90 translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…