Merge pull request #994 from Tria-plc/tests

Fixing cors issue in produciton
This commit is contained in:
mulish77
2026-07-28 13:37:53 +03:00
committed by GitHub

View File

@@ -58,6 +58,13 @@ async function bootstrap() {
"x-delegator-position-id", "x-delegator-position-id",
"x-current-project-id", "x-current-project-id",
"x-current-position-id", "x-current-position-id",
// Headers sent by the freight-backoffice OKR/objective-service client
// (withHeaders.tsx, signatureAndTeeterService.ts, useIncomingReport.ts)
// under yet another naming convention — unprefixed "tenant-key"/"unit-id",
// and "x-delegated-position-id" (delegated, not delegator).
"tenant-key",
"unit-id",
"x-delegated-position-id",
], ],
exposedHeaders: ["Content-Disposition"], exposedHeaders: ["Content-Disposition"],
maxAge: 86400, // cache preflight for 24h to cut chatter in dev maxAge: 86400, // cache preflight for 24h to cut chatter in dev