I've got a Zimlet I'm working on that requests an URL via the proxy service. The result is ALWAYS 403.
config_template.xml:
Code:
<zimletConfig name="com_asterisk_voicemail" version="1.0">
<global>
<property name="allowedDomains">192.168.2.20</property>
<property name="voicemailHost">192.168.2.20</property>
<property name="vmxmlPath">/vmxml/</property>
</global>
</zimletConfig>
Snippet from my
js file:
Code:
var url = ZmZimletBase.PROXY + 'http://' + this.getConfig("voicemailHost") + this.getConfig("vmxmlPath");
var reqParam = 'action=' + action;
var reqHeader = {"Content-Type":"application/x-www-form-urlencoded"};
var result = AjxRpc.invoke(reqParam, url, reqHeader);
return url + "<br />" + result.text; The server it is trying reach has all authentication hard coded for testing. I don't understand why it is always 403'ing when I have the allowedDomains property set. I've even set the allowedDomains to * and it still fails.
Anyone have any suggestions?
tia
-Blake