Phase 7: Frontend auth — React Router, AuthContext, Login/Register, API client

This commit is contained in:
Suslov-MD
2026-08-16 08:54:31 +00:00
parent 281daa4717
commit ac85d71c65
16 changed files with 578 additions and 3 deletions
+2 -2
View File
@@ -27,8 +27,8 @@ export function createApp(extraMiddleware?: express.RequestHandler): express.Exp
// Security headers
app.use(helmet());
// CORS — whitelist из CLIENT_ORIGIN
app.use(cors({ origin: env.clientOrigin }));
// CORS — whitelist из CLIENT_ORIGIN (поддерживается несколько через запятую)
app.use(cors({ origin: env.clientOrigins }));
// Парсинг тела запроса
app.use(json());