From 6328e1d64447b6dfd121cc9ff14ea3c10108eca6 Mon Sep 17 00:00:00 2001 From: jeremygan2021 Date: Tue, 10 Feb 2026 22:11:02 +0800 Subject: [PATCH] gunicorn --- backend/config/settings.py | 5 +++++ frontend/vite.config.js | 1 + 2 files changed, 6 insertions(+) diff --git a/backend/config/settings.py b/backend/config/settings.py index 92c8882..e37c7c1 100644 --- a/backend/config/settings.py +++ b/backend/config/settings.py @@ -59,6 +59,11 @@ MIDDLEWARE = [ CORS_ALLOW_ALL_ORIGINS = True +CSRF_TRUSTED_ORIGINS = [ + "https://market.quant-speed.com", + "http://market.quant-speed.com", +] + ROOT_URLCONF = 'config.urls' TEMPLATES = [ diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 7335060..b732916 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -12,5 +12,6 @@ export default defineConfig({ preview: { host: '0.0.0.0', port: 15173, + allowedHosts: ['market.quant-speed.com'] } })