diff --git a/backend/config/settings.py b/backend/config/settings.py index 13f75bd..afa75a4 100644 --- a/backend/config/settings.py +++ b/backend/config/settings.py @@ -72,6 +72,8 @@ CORS_ALLOW_ALL_ORIGINS = True CSRF_TRUSTED_ORIGINS = [ "https://market.quant-speed.com", "http://market.quant-speed.com", + "https://contest.quant-speed.com", + "http://contest.quant-speed.com", "http://localhost:8000", ] diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 7dad3a4..3ec125f 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -34,6 +34,7 @@ export default defineConfig({ preview: { host: '0.0.0.0', port: 8890, + allowedHosts: ['contest.quant-speed.com'], proxy: { '/api': { target: 'http://cywl-scoring-backend:8876',