Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chg(infra): cors allow preview (#2857)

teob08cb8c58775
diff --git a/infra/packages/resources/src/resources/cors.ts b/infra/packages/resources/src/resources/cors.ts
index 060bbe8960..f7c1222276 100644
--- a/infra/packages/resources/src/resources/cors.ts
+++ b/infra/packages/resources/src/resources/cors.ts
@@ -25,5 +25,9 @@ export const ALLOWED_ORIGINS = [
'https://website-staging.macro.com',
'https://website-prod.macro.com',
'https://apollo-testing.macro.com',
+ // S3 CORS supports a single wildcard in AllowedOrigin. This lets feature
+ // preview apps (for example, https://branch.preview.macro.com) load
+ // presigned S3 media such as call recordings.
+ 'https://*.preview.macro.com',
'tauri://localhost',
];