Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: adding additional headers to restrict iframe

sriram veeraghanta216a7c8fda34
diff --git a/space/next.config.js b/space/next.config.js
index 16450199c1..18b9275a1d 100644
--- a/space/next.config.js
+++ b/space/next.config.js
@@ -3,10 +3,24 @@ require("dotenv").config({ path: ".env" });
const { withSentryConfig } = require("@sentry/nextjs");
const nextConfig = {
+ async headers() {
+ return [
+ {
+ source: "/",
+ headers: [{ key: "X-Frame-Options", value: "SAMEORIGIN" }],
+ },
+ ];
+ },
basePath: process.env.NEXT_PUBLIC_DEPLOY_WITH_NGINX === "1" ? "/spaces" : "",
reactStrictMode: false,
swcMinify: true,
images: {
+ remotePatterns: [
+ {
+ protocol: "https",
+ hostname: "**",
+ },
+ ],
unoptimized: true,
},
output: "standalone",
diff --git a/web/next.config.js b/web/next.config.js
index 29925a312b..e018ea3173 100644
--- a/web/next.config.js
+++ b/web/next.config.js
@@ -2,6 +2,14 @@ require("dotenv").config({ path: ".env" });
const { withSentryConfig } = require("@sentry/nextjs");
const nextConfig = {
+ async headers() {
+ return [
+ {
+ source: "/(.*)?",
+ headers: [{ key: "X-Frame-Options", value: "SAMEORIGIN" }],
+ },
+ ];
+ },
reactStrictMode: false,
swcMinify: true,
images: {