fuyu 5 years ago
parent
commit
c6ba2ee8e4
1 changed files with 3 additions and 3 deletions
  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;