proxy: { "/api": { target: 'https://example.com', changeOrigin: true, secure: false, headers: { Referer: 'https://example.com' } } }
target 要使用 Proxy
包裝的目標
secure 安全證書校驗
Referer 表示請求的來源(必填)
轉自https://www.cnblogs.com/roland-sky/p/12916645.html