跨域

https://www.cnblogs.com/renjing/p/6394725.html
https://www.cnblogs.com/bninp/p/5694277.html
http://blog.51cto.com/ixdba/1928719
https://blog.csdn.net/G_eorge/article/details/69228400?locationNum=8&fps=1

配置nginx https://blog.csdn.net/kkgbn/article/details/52276866

server {
    listen       9001;
    server_name  localhost;

    location / {
        root   ../;
        index  index.html index.htm;
    }

  # 访问127.0.0.1:9001/api/testdir
  # 代理成 http://otherweb.com/testdir
      location /api/{
            proxy_pass http://otherweb.com/;
            proxy_cookie_path / /api;
        }

}