From 465189c01188596d21ff110306650c0cef1cc796 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 24 Feb 2023 12:18:00 +0100 Subject: [PATCH] fix: have root and all other paths those headers - "/(.*)" would result in / (root) not having the headers - now a request to root will also have the headers included in the response --- nextjs/docs/advanced-features/security-headers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextjs/docs/advanced-features/security-headers.md b/nextjs/docs/advanced-features/security-headers.md index c51718bdc..9a3165c0e 100644 --- a/nextjs/docs/advanced-features/security-headers.md +++ b/nextjs/docs/advanced-features/security-headers.md @@ -18,7 +18,7 @@ module.exports = { return [ { // Apply these headers to all routes in your application. - source: '/(.*)', + source: '/:path*', headers: securityHeaders, }, ]