Skip to content

Instantly share code, notes, and snippets.

@noobalex
Last active December 2, 2019 03:17
Show Gist options
  • Save noobalex/3cd1a15503d9d3ff1f32d1d4a01fc365 to your computer and use it in GitHub Desktop.
Save noobalex/3cd1a15503d9d3ff1f32d1d4a01fc365 to your computer and use it in GitHub Desktop.
live-server proxy
"scripts": {
"start": "live-server --open=./ --port=9000 --proxy=/fhdd:http://127.0.0.1:8001/fhdd --proxy=/arcgis:http://10.3.250.139:8399/arcgis --proxy=/arcgis2:http://10.3.250.139:8399/arcgis"
}
// --open 启动服务器时打开指定的文件
// --port 启动指定端口
// --proxy 要跨域请求的域名和端口
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment