Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
I'm trying to start a process from an external page in a domain different from the domain that Joget is on.
When using the Javascript API : ConnectionManager.post(url, callback, params) , I am getting a 500 error saying:
"XMLHttpRequest cannot load http://localhost:8080/jw/web/json/workflow/process/start/simpleApproval:7:sample. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9999' is therefore not allowed access."
When using the Javascript API : ConnectionManager.ajaxJsonp(url, callback, params), I am getting the error :
GET http://localhost:8080/jw/web/json/workflow/process/start/simpleApproval:7:s…583_1417003571435&var_requester=asdasd&var_formname=asdasd&_=1417003574550 jquery-1.5.2.min.js:16
sendjquery-1.5.2.min.js:16
d.extend.ajaxutil.js:30
ConnectionManager.ajaxJsonpindex.php:36
(anonymous function)jquery-1.5.2.min.js:16
d.event.handlejquery-1.5.2.min.js:16
k.handle.m"
When using the Javascript API : ConnectionManager.ajaxJsonp(url, callback, params), I am getting the error :
GET http://localhost:8080/jw/web/json/workflow/process/start/simpleApproval:7:s…583_1417003571435&var_requester=asdasd&var_formname=asdasd&_=1417003574550 jquery-1.5.2.min.js:16
send jquery-1.5.2.min.js:16
d.extend.ajax util.js:30
ConnectionManager.ajaxJsonp index.php:36
(anonymous function) jquery-1.5.2.min.js:16
d.event.handle jquery-1.5.2.min.js:16
k.handle.m"
Javascript API ConnectionManager.post works when the external page is on the same domain as Joget but I cannot get ConnectionManager.ajaxJsonp to work. The same error always come out.
Any help on the cross domain post issue that I am having? What is the correct method to use the Json API from a different domain?