Skip to content

Scheduling infrastructure for absolutely everyone.

Add X-Frame-Options to page headers (#6784)

Alex van Andelc42674595c2d
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 4c046f461de..c3afcc7ac6a 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -176,6 +176,20 @@ const nextConfig = {
}, */
];
},
+ async headers() {
+ return [
+ {
+ // prettier-ignore
+ source: "/:path*((?<!\/embed$)(?<!\/embed\/preview\.html$))",
+ headers: [
+ {
+ key: "X-Frame-Options",
+ value: "DENY",
+ },
+ ],
+ },
+ ];
+ },
async redirects() {
const redirects = [
{