react 跨域代理 | options.allowedHosts[0] should be a non-empty string.
Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
- options.allowedHosts[0] should be a non-empty string.
package.json种加入:
"options": {
"allowedHosts": ["localhost", ".localhost"],
"proxy": "https://localhost:8080/"
}
https://blog.csdn.net/qq_51689134/article/details/124588313
https://blog.csdn.net/weixin_45043548/article/details/129026181