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.

fix(website): allow same-origin framing so the homepage can embed /demo (#7340)

teo702f67d1bd6a
diff --git a/infra/stacks/website/index.ts b/infra/stacks/website/index.ts
index ff3dcc0b97..7fe3ba8055 100644
--- a/infra/stacks/website/index.ts
+++ b/infra/stacks/website/index.ts
@@ -145,12 +145,13 @@ const securityHeadersPolicy = new aws.cloudfront.ResponseHeadersPolicy(
`security-headers-${stack}`,
{
securityHeadersConfig: {
+ // Same-origin only: the homepage embeds its own /demo workspace in an iframe.
frameOptions: {
- frameOption: 'DENY',
+ frameOption: 'SAMEORIGIN',
override: true,
},
contentSecurityPolicy: {
- contentSecurityPolicy: "frame-ancestors 'none'",
+ contentSecurityPolicy: "frame-ancestors 'self'",
override: true,
},
contentTypeOptions: {