From 573e09e99fdd04ff5808efee9715c777b823d0cd Mon Sep 17 00:00:00 2001 From: MoonTestUse1 Date: Tue, 24 Dec 2024 04:26:34 +0600 Subject: [PATCH] =?UTF-8?q?cha2524222fvdf=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/main.py | 9 +-------- frontend/vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/backend/app/main.py b/backend/app/main.py index 11004de..b706bef 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -29,14 +29,7 @@ bot_thread.start() # CORS middleware app.add_middleware( CORSMiddleware, - allow_origins=[ - "http://localhost:5173", - "http://185.139.70.62:5173", - "http://46.233.242.206:5173", - "http://185.139.70.62", - "http://46.233.242.206", - "http://0.0.0.0", - ], + allow_origins=["*"], allow_credentials=True, allow_methods=["*"], allow_headers=["*"], diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 394ef09..972c4b0 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -12,7 +12,7 @@ export default defineConfig({ server: { proxy: { '/api': { - target: 'http://localhost:8080', + target: 'http://localhost:8000', changeOrigin: true } }