cors: add headers to allow the YouTube embed wrapper to be displayed in an iframe

This commit is contained in:
Abdullah Atta
2026-01-19 08:57:50 +05:00
parent 03f230dbca
commit d047bd052e

View File

@@ -218,6 +218,8 @@ const server = Bun.serve({
status: 200, status: 200,
headers: { headers: {
"Content-Type": "text/html; charset=utf-8", "Content-Type": "text/html; charset=utf-8",
"Content-Security-Policy": "frame-ancestors *",
"X-Frame-Options": "ALLOWALL",
}, },
}); });
} }