Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: introduce X-Frame-Options header to prevent clickjacking

liyasthomasb3e9df4f3dbb
diff --git a/netlify.toml b/netlify.toml
index 8a32b7ced..a00bb82a1 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -7,6 +7,12 @@
publish = "packages/hoppscotch-app/dist"
command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run generate"
+[[headers]]
+ for = "/*"
+ [headers.values]
+ X-Frame-Options = "DENY"
+ X-XSS-Protection = "1; mode=block"
+
[[redirects]]
from = "/discord"
to = "https://discord.gg/GAMWxmR"