首页 > 其他分享 >Error occurred while proxying request localhost:端口 报错500的解决方法

Error occurred while proxying request localhost:端口 报错500的解决方法

时间:2023-01-06 13:35:38浏览次数:36  
标签:proxying errors request api 报错 https localhost

    '/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

相关文章