From e491157ee63b85a5d4dd8f8a44983bfbaaae692b Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 29 Apr 2024 02:01:50 +0100 Subject: Move headers to Gatsby config --- _headers | 2 -- gatsby-config.ts | 13 ++++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) delete mode 100644 _headers diff --git a/_headers b/_headers deleted file mode 100644 index 2bf483d..0000000 --- a/_headers +++ /dev/null @@ -1,2 +0,0 @@ -/* - Referrer-Policy: strict-origin-when-cross-origin diff --git a/gatsby-config.ts b/gatsby-config.ts index fc79f31..77a4608 100644 --- a/gatsby-config.ts +++ b/gatsby-config.ts @@ -35,7 +35,18 @@ const config: GatsbyConfig = { options: { path: `./data/`, }, - },] + },], + headers: [ + { + source: "/*", + headers: [ + { + key: "Referrer-Policy", + value: "strict-origin-when-cross-origin", + } + ] + } + ] }; export default config; -- cgit v1.2.3