ajax 请求被重定向到 /system/sling/cqform/defaultlogin。html
ajax request getting redirected to /system/sling/cqform/defaultlogin.html
我正在 ajax 从 cq 调用 到 webservice,但是 ajax 调用 returns 下面的响应
<html>
<head>
<script type="text/javascript">
var u="/system/sling/cqform/defaultlogin.html?resource=%2Ferror%2F500.html&$$login$$=%24%24login%24%24";
if ( window.location.hash) {u = u + window.location.hash;}
document.location = u;
</script>
</head>
<body>
<!-- QUICKSTART_HOMEPAGE - (string used for readyness detection, do not remove) -->
</body>
</html>
请问上面的回复是什么意思?
注意:cookie 和必要的 headers 设置为 ajax 请求以调用网络服务。
此外,此 ajax 调用在所有其他 cq 环境中工作正常,它仅在一个环境中出现上述问题。
谢谢,
巴拉吉.
脚本中的link指向登录表单。所以我认为,该服务只能由 logged-in/some CUG 用户访问。
UPD1
要找到原因,您应该检查用户的权限,也可能是 Dispatcher 配置有问题。
我正在 ajax 从 cq 调用 到 webservice,但是 ajax 调用 returns 下面的响应
<html>
<head>
<script type="text/javascript">
var u="/system/sling/cqform/defaultlogin.html?resource=%2Ferror%2F500.html&$$login$$=%24%24login%24%24";
if ( window.location.hash) {u = u + window.location.hash;}
document.location = u;
</script>
</head>
<body>
<!-- QUICKSTART_HOMEPAGE - (string used for readyness detection, do not remove) -->
</body>
</html>
请问上面的回复是什么意思?
注意:cookie 和必要的 headers 设置为 ajax 请求以调用网络服务。 此外,此 ajax 调用在所有其他 cq 环境中工作正常,它仅在一个环境中出现上述问题。
谢谢, 巴拉吉.
脚本中的link指向登录表单。所以我认为,该服务只能由 logged-in/some CUG 用户访问。
UPD1
要找到原因,您应该检查用户的权限,也可能是 Dispatcher 配置有问题。