nginx 跨域

if ($request_method = 'GET') {
                add_header 'Access-Control-Allow-Origin' 'http://localhost:8989';
                add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
                add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
                add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
                add_header 'Access-Control-Allow-Credentials' 'true';
            }
上一篇:crontab权限控制


下一篇:Dowhile循环