CORS不适用于nginx和离子

时间:2016-02-01 05:25:36

标签: nginx ionic-framework cors

我有nginx版本constant_tsc

包括在enable-cors.org

上看到的CORS

服务器正在运行Drupal 7.x

我已经包含了像这样的core.conf

nginx/1.9.9

此后我尝试# Location location / { include /etc/nginx/cors.conf; try_files $uri $uri/ /index.php?q=$uri&$args; }

curl -I https://this.that.com/

我看不到'Access-Control-Allow-Origin''*'

因为这个镀铬错误

  

XMLHttpRequest无法加载https://this.that.com/endpoint。没有   请求中存在“Access-Control-Allow-Origin”标头   资源。因此不允许来源“http://localhost:8100”   访问。

0 个答案:

没有答案