From 0a3407c519e470f08b72480f5521363d9f956104 Mon Sep 17 00:00:00 2001 From: gracefullight Date: Wed, 3 Apr 2024 18:16:20 +0900 Subject: [PATCH] =?UTF-8?q?feat(web):=20=E2=9C=A8=20NEL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/next.config.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index eacf360..bbb1fef 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -61,6 +61,25 @@ const config = { }, { key: "X-Content-Type-Options", value: "nosniff" }, { key: "X-Frame-Options", value: "SAMEORIGIN" }, + { + key: "NEL", + value: JSON.stringify({ + report_to: "default", + max_age: 31_536_000, + include_subdomains: true, + }), + }, + { + key: "Report-To", + value: JSON.stringify({ + group: "default", + max_age: 31_536_000, + endpoints: [ + { url: "https://gracefullight.report-uri.com/a/d/g" }, + ], + include_subdomains: true, + }), + }, ], }, ];