Skip to content

Commit bb5a339

Browse files
authored
Merge pull request #4173 from bcgov/chore/428-wava-low-priority-issues
chore: add headers to next config
2 parents 6583b21 + 3b35dff commit bb5a339

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

bciers/next.config.base.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const { withSentryConfig } = require("@sentry/nextjs");
33
const path = require("node:path");
44

55
const baseConfig = {
6+
poweredByHeader: false,
67
reactStrictMode: true,
78
output: "standalone",
89
turbopack: {
@@ -57,6 +58,23 @@ const baseConfig = {
5758
},
5859
];
5960
},
61+
async headers() {
62+
return [
63+
{
64+
source: "/(.*)",
65+
headers: [
66+
{
67+
key: "X-Content-Type-Options",
68+
value: "nosniff",
69+
},
70+
{
71+
key: "Strict-Transport-Security",
72+
value: "max-age=63072000; includeSubDomains;",
73+
},
74+
],
75+
},
76+
];
77+
},
6078
};
6179

6280
// Shared Sentry options for all apps

0 commit comments

Comments
 (0)