diff options
author | 2024-04-29 02:01:50 +0100 | |
---|---|---|
committer | 2024-04-29 02:01:50 +0100 | |
commit | e491157ee63b85a5d4dd8f8a44983bfbaaae692b (patch) | |
tree | 480aef38f6fb2894bb6c4a0cd028f987acd782fc | |
parent | Add headers file (diff) |
Move headers to Gatsby config
-rw-r--r-- | _headers | 2 | ||||
-rw-r--r-- | gatsby-config.ts | 13 |
2 files changed, 12 insertions, 3 deletions
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; |