'/AuthServer/api/': { target: 'https://localhost:44319', secure:false,// 这是签名认证,http和https区分的参数设置 changeOrigin: true, pathRewrite: { '^/AuthServer': '' }, },
可能是本地调试的时候,使用了https,代理的时候去做了安全证书验证,调试的时候可以把 secure设置成false
Visual Studio Code报如下错误:
Error occurred while proxying request localhost:8000/api/account/login to https://localhost:44319/ [DEPTH_ZERO_SELF_SIGNED_CERT] (https://nodejs.org/api/errors.html#errors_common_system_errors)
标签:proxying,errors,request,api,报错,https,localhost From: https://www.cnblogs.com/xygsj/p/17030164.html