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 no-referrer-when-downgrade referrer headers

Steven Tey8c52cfd206d1
diff --git a/next.config.js b/next.config.js
index 80639293a0..a4a70260b8 100644
--- a/next.config.js
+++ b/next.config.js
@@ -10,4 +10,21 @@ module.exports = {
"res.cloudinary.com",
],
},
+ async headers() {
+ return [
+ {
+ source: "/:path*",
+ headers: [
+ {
+ key: "Referrer-Policy",
+ value: "no-referrer-when-downgrade",
+ },
+ {
+ key: "X-DNS-Prefetch-Control",
+ value: "on",
+ },
+ ],
+ },
+ ];
+ },
};