- if ($request_method = OPTIONS) {
- add_header Access-Control-Allow-Credentials "true";
- add_header Access-Control-Allow-Headers "User-Agent,Authorization,Content-type,Depth,If-match,If-None-Match,Lock-Token,Timeout,Destination,Overwrite,X-client,X-Requested-With";
- add_header Access-Control-Allow-Methods "GET,POST,OPTIONS,PROPFIND,REPORT,PUT,MOVE,DELETE,LOCK,UNLOCK";
- add_header Access-Control-Allow-Origin "*";
- add_header Content-Length 0;
- add_header Content-Type text/plain;
- return 200;
- }
+ #if ($request_method = OPTIONS) {
+ # add_header Access-Control-Allow-Credentials "true";
+ # add_header Access-Control-Allow-Headers "User-Agent,Authorization,Content-type,Depth,If-match,If-None-Match,Lock-Token,Timeout,Destination,Overwrite,X-client,X-Requested-With";
+ # add_header Access-Control-Allow-Methods "GET,POST,OPTIONS,PROPFIND,REPORT,PUT,MOVE,DELETE,LOCK,UNLOCK";
+ # add_header Access-Control-Allow-Origin "*";
+ # add_header Content-Length 0;
+ # add_header Content-Type text/plain;
+ # return 200;
+ # }