前端配置后端接口的https地址,必须要使用域名

大部分SSL证书,只能使用域名进行申请。

没用使用域名时,vue前端项目报错:net::ERR_CERT_COMMON_NAME_INVALID,go后端项目报错:

   2022/10/19 16:33:34 http: TLS handshake error from 111.204.179.70:59011: remote error: tls: unknown certificate
   2022/10/19 16:34:47 http: TLS handshake error from 111.204.179.70:59281: tls: first record does not look like a TLS handshake
   2022/10/19 16:35:26 http: TLS handshake error from 111.204.179.70:59516: remote error: tls: unknown certificate
   2022/10/19 16:43:10 http: TLS handshake error from 111.204.179.70:61535: remote error: tls: unknown certificate

posted on 2022-10-19 19:32  cag2050  阅读(1013)  评论(0编辑  收藏  举报

导航