import{_ as s,o as a,c as n,Q as p}from"./chunks/framework.522debca.js";const d=JSON.parse('{"title":"proxy 跨域","description":"","frontmatter":{},"headers":[],"relativePath":"guide/vue3/proxy.md","lastUpdated":1679905840000}'),l={name:"guide/vue3/proxy.md"},o=p(`

proxy 跨域

javascript
server: {
    proxy: {
        '/api': {
            target: 'https://baidu.com',
            changeOrigin: true,
            rewrite: (path) => path.replace(/^\\/api/, '')
        }
    }
},
`,2),e=[o];function t(r,c,F,y,D,i){return a(),n("div",null,e)}const C=s(l,[["render",t]]);export{d as __pageData,C as default};