我用 jquerymobile (1.2.0) 创建了一个全新的 worklight (5.0.6) 项目,添加了 blackberry 6-7 环境,仅此而已。这是 wlcommoninit 代码。
function wlCommonInit(){
WL.Client.connect({
onSuccess: onConnectSuccess,
onFailure: onConnectFailure
});
}
function onConnectSuccess(){alert("ok");}
function onConnectFailure(){alert("ko");}
预览应用程序时出现以下问题。
wlclient init started worklight.js:1118
before: app init onSuccess worklight.js:1118
Request [/apps/services/api/cm2/blackberry/init] worklight.js:1118
after: app init onSuccess worklight.js:1118
wlclient init success worklight.js:1118
Failed to load resource: the server responded with a status of 403 (Forbidden)
`http://localhost:8080/apps/services/api/cm2/blackberry/init`
[/apps/services/api/cm2/blackberry/init] failure. state: 403, response: undefined worklight.js:1118
公共环境工作正常。我错过了什么吗?感谢您的帮助