updated translations and oauth
This commit is contained in:
@@ -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*",
|
||||
|
||||
Reference in New Issue
Block a user