vue设置自定义域名访问并设置为htpps
修改vue.config.js
module.exports = { configureWebpack: { devServer: { host: 'www.word.com', port: 8080, open: true, proxy: { "/api": { target: "https://www.word.com:22599", }, }, https: true }, devtool: "inline-source-map" }, };
主要是:
host: 'www.word.com',
port: 8080,
https: true
本文来自博客园,作者:皮军旗,转载请注明原文链接:https://www.cnblogs.com/pijunqi/p/14428781.html