Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

added X-Frame-Options DENY

Steven Teya2ed86dc31e3
diff --git a/next.config.js b/next.config.js
index ffcf064581..a6e4cb739d 100644
--- a/next.config.js
+++ b/next.config.js
@@ -13,6 +13,33 @@ module.exports = {
},
async headers() {
return [
+ {
+ source: "/login",
+ headers: [
+ {
+ key: "X-Frame-Options",
+ value: "DENY",
+ },
+ ],
+ },
+ {
+ source: "/register",
+ headers: [
+ {
+ key: "X-Frame-Options",
+ value: "DENY",
+ },
+ ],
+ },
+ {
+ source: "/auth/:path*",
+ headers: [
+ {
+ key: "X-Frame-Options",
+ value: "DENY",
+ },
+ ],
+ },
{
source: "/:path*",
headers: [