updated translations and oauth

This commit is contained in:
2021-11-19 09:30:04 +00:00
parent 3c38da1400
commit f9f7b777e7
91 changed files with 2519 additions and 1275 deletions
+45
View File
@@ -17,7 +17,36 @@ module.exports = withStyles({
},
},
});
const securityHeaders = [
{
key: "X-DNS-Prefetch-Control",
value: "on",
},
{
key: "X-Frame-Options",
value: "SAMEORIGIN",
},
{
key: "Strict-Transport-Security",
value: "max-age=63072000; includeSubDomains; preload",
},
{
key: "Content-Security-Policy",
value: "frame-src 'self'; child-src 'self'",
},
];
module.exports = {
async headers() {
return [
{
// Apply these headers to all routes in your application.
source: "/(.*)",
headers: securityHeaders,
},
];
},
generateBuildId: async () => {
// You can, for example, get the latest git commit hash here
return "pinswg-build-id";
@@ -89,6 +118,22 @@ module.exports = {
source: "/help/cwcis",
destination: "/help/cookies",
},
{
source: "/hygyrchedd",
destination: "/accessibility",
},
{
source: "/preifatrwydd",
destination: "/privacy",
},
{
source: "/manylion-am-gwcis",
destination: "/details-about-cookies",
},
{
source: "/telerau-ac-amodau",
destination: "/terms-and-conditions",
},
// {
// source: "/cy:path*",