Nginx 反向代理解决跨域

location /api/ {
   rewrite  ^/api/(.*)$ /$1 break;
   proxy_pass http://bbb.com:3000/;
}