location /upload {
        root  D:/webroot/online_xinshop/public;
        add_header Access-Control-Allow-Origin *;
    #    add_header Access-Control-Allow-Methods GET,POST,OPTIONS;        
    #    add_header Cache-Control no-cache;
        if ($request_method = OPTIONS ) { 
               return 200;
        }
    }