 <p>Wow,so excited,I sovled this all by my self,what i do wrong here is that the request header i sent is not included in the nginx config <code>add_header 'Access-Control-Allow-Headers'</code></p> <p>complete nginx config:</p> <pre><code>http { include mime.types; default_type application/octet-stream; access_log /tmp/nginx.access.log; sendfile on; upstream realservers{ #server 192.168.239.140:8080; #server 192.168.239.138:8000; server 192.168.239.147:8080; } server { listen 8888 default; server_name example.com; client_max_body_size 4G; keepalive_timeout 5; location / { add_header Access-Control-Allow-Origin *; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'Access-Control-Allow-Orgin,XMLHttpRequest,Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Mx-ReqToken,X-Requested-With'; try_files $uri $uri/index.html $uri.html @proxy_to_app; } location @proxy_to_app{ add_header Access-Control-Allow-Origin *; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'Access-Control-Allow-Orgin,XMLHttpRequest,Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Mx-ReqToken,X-Requested-With'; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; #proxy_set_header X-Real-IP $remote_addr; proxy_redirect off; proxy_pass http://realservers; } } } </code></pre> <p>because my request is :</p> <pre><code>core-ajax auto headers='{"Access-Control-Allow-Origin":"*","X-Requested-With": "XMLHttpRequest"}' url="http://192.168.239.149:8888/article/" handleAs="json" response="{{response}}"&gt;&lt;/core-ajax&gt; </code></pre> <p>i didnt include the <code>Access-Control-Allow-Origin</code> and <code>XMLHttpRequest</code> header into the nginx config <code>Access-Control-Allow-Headers</code>,so that is the problem.</p> <p>I hope its useful to whom has the same problem!</p>