fuyu 5 年之前
父节点
当前提交
c6ba2ee8e4
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      conf.d/api.conf

+ 3 - 3
conf.d/api.conf

@@ -5,9 +5,9 @@ server {
   index	index.html index.php;
   root /data/code/yuanchengpasc/public/;
 
-  add_header Access-Control-Allow-Origin '*';
-  add_header Access-Control-Allow-Headers 'X-Requested-With,Content-Type';
-  add_header Access-Control-Allow-Methods 'GET,POST,OPTIONS'
+  #add_header Access-Control-Allow-Origin '*';
+  #add_header Access-Control-Allow-Headers 'X-Requested-With,Content-Type';
+  #add_header Access-Control-Allow-Methods 'GET,POST,OPTIONS'
   location / {
       if (!-e $request_filename) {
         rewrite  ^/(.*)$  /index.php/$1  last;