From 287a3d3e66838ae8ad9c61c4b50292c44e743afb Mon Sep 17 00:00:00 2001 From: trivernis Date: Thu, 27 Jul 2023 18:06:11 +0200 Subject: [PATCH] Allow CORS --- vite.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index bbf8c7d..3ebe352 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,5 +2,8 @@ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; export default defineConfig({ - plugins: [sveltekit()] + plugins: [sveltekit()], + server: { + cors: true, + } });