diff options
Diffstat (limited to 'examples/ssr/astro.config.mjs')
-rw-r--r-- | examples/ssr/astro.config.mjs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/ssr/astro.config.mjs b/examples/ssr/astro.config.mjs index d54ab5929..4b01264ec 100644 --- a/examples/ssr/astro.config.mjs +++ b/examples/ssr/astro.config.mjs @@ -4,8 +4,14 @@ export default defineConfig({ renderers: ['@astrojs/renderer-svelte'], vite: { server: { + cors: { + credentials: true + }, proxy: { - '/api': 'http://localhost:8085', + '/api': { + target: 'http://127.0.0.1:8085', + changeOrigin: true, + } }, }, }, |