nuxt 项目 certificate has expired 或 nuxt unable to verify the first certificate

plugins/axios.js

const https = require('https')

export default function ({ $axios}){
   $axios.create({
       httpsAgent: new https.Agent({
           rejectUnauthorized: false
        })
   })
}

  

posted @ 2023-09-21 16:54  慕城蓝就  阅读(115)  评论(0编辑  收藏  举报