Last active
December 2, 2019 03:17
-
-
Save noobalex/3cd1a15503d9d3ff1f32d1d4a01fc365 to your computer and use it in GitHub Desktop.
live-server proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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