You are not logged in.
The rest server run on port 8080, Html5 app run on port 8081 (MS IIS7), Whether it is cross-domain?
\html5\app\store\contancts.js
...
actionMethods : {
create : 'POST',
read : 'GET',
update : 'PUT',
destroy : 'DELETE'
},
api : {
create : 'http://localhost:8080/root/SampleRecord',
read : 'http://localhost:8080/root/SampleRecord/?SELECT=*',
update : 'http://localhost:8080/root/SampleRecord/',
destroy : 'http://localhost:8080/root/SampleRecord/'
},
...
About this,can tell us about it?
Offline
You can enable CORS on the mORMot server.
Ensure you use the latest 1.18 nightly zip of the framework.
See the SAD 1.18 pdf about it, and the various samples.
aHttpServer.AccessControlAllowOrigin := '*'; // allow cross-site AJAX queries
Offline
Ok,thanks
Offline