diff --git a/next.config.js b/next.config.js index a64b64f..f248e86 100644 --- a/next.config.js +++ b/next.config.js @@ -5,6 +5,36 @@ const nextConfig = { experimental: { appDir: true, scrollRestoration: true + }, + headers: async () => { + return [ + { + source: '/(.*)', + headers: [ + { + key: 'X-Frame-Options', + value: 'DENY' + }, + { + key: 'Content-Security-Policy', + value: + "default-src 'self'; script-src 'self'; font-src 'self' 'https://fonts.googleapis.com'" + }, + { + key: 'X-Content-Type-Options', + value: 'nosniff' + }, + { + key: 'Permissions-Policy', + value: 'camera=(); battery=(); geolocation=(); microphone=()' + }, + { + key: 'Referrer-Policy', + value: 'origin-when-cross-origin' + } + ] + } + ]; } }; diff --git a/ui/Puzzle.tsx b/ui/Puzzle.tsx index 16b05c0..745a4b2 100644 --- a/ui/Puzzle.tsx +++ b/ui/Puzzle.tsx @@ -137,7 +137,8 @@ export default function Puzzle({ token, id }: { token: string; id: number }) {
- Tentative{puzzle.tries && puzzle.tries > 1 ? "s":""} : {puzzle.tries} + Tentative{puzzle.tries && puzzle.tries > 1 ? 's' : ''} :{' '} + {puzzle.tries}
Score : {puzzle.score}