#1 2014-06-06 07:08:28

畅雨
Member
Registered: 2013-10-24
Posts: 29

Sample18-AJAX Extjs Grid ,Whether it is cross-domain?

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

#2 2014-06-06 08:19:58

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Sample18-AJAX Extjs Grid ,Whether it is cross-domain?

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

#3 2014-06-09 03:10:29

畅雨
Member
Registered: 2013-10-24
Posts: 29

Re: Sample18-AJAX Extjs Grid ,Whether it is cross-domain?

Ok,thanks

Offline

Board footer

Powered by FluxBB