diff --git a/frontend/Caddyfile b/frontend/Caddyfile index 3284cb65..6468d708 100644 --- a/frontend/Caddyfile +++ b/frontend/Caddyfile @@ -43,7 +43,7 @@ Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate" X-Content-Type-Options "nosniff" Strict-Transport-Security "max-age=31536000" - Content-Security-Policy "default-src 'self' https://*.gov.bc.ca data:; script-src https://*.gov.bc.ca 'self' 'unsafe-eval' https://www2.gov.bc.ca ;style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://use.fontawesome.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: https://fonts.googleapis.com http://www.w3.org https://*.gov.bc.ca https://*.tile.openstreetmap.org" + Content-Security-Policy "default-src 'self' https://*.gov.bc.ca data:; script-src https://*.gov.bc.ca 'self' 'unsafe-eval' https://www2.gov.bc.ca ;style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://use.fontawesome.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: https://fonts.googleapis.com http://www.w3.org https://*.gov.bc.ca https://*.tile.openstreetmap.org; frame-src 'self' blob:" Referrer-Policy "same-origin" Feature-Policy "fullscreen 'self'; camera 'none'; microphone 'none'" } diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 413681d1..fd035cf2 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -29,7 +29,6 @@ "react-bootstrap": "^2.10.1", "react-datepicker": "^6.6.0", "react-dom": "^18.2.0", - "react-helmet-async": "^2.0.4", "react-loading-skeleton": "^3.4.0", "react-redux": "^9.0.4", "react-router-dom": "^6.22.1", @@ -18357,25 +18356,6 @@ "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz", "integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==" }, - "node_modules/react-fast-compare": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.2.tgz", - "integrity": "sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==" - }, - "node_modules/react-helmet-async": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/react-helmet-async/-/react-helmet-async-2.0.4.tgz", - "integrity": "sha512-yxjQMWposw+akRfvpl5+8xejl4JtUlHnEBcji6u8/e6oc7ozT+P9PNTWMhCbz2y9tc5zPegw2BvKjQA+NwdEjQ==", - "dependencies": { - "invariant": "^2.2.4", - "react-fast-compare": "^3.2.2", - "shallowequal": "^1.1.0" - }, - "peerDependencies": { - "react": "^16.6.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.6.0 || ^17.0.0 || ^18.0.0" - } - }, "node_modules/react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", @@ -19501,11 +19481,6 @@ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" }, - "node_modules/shallowequal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", - "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==" - }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", diff --git a/frontend/package.json b/frontend/package.json index 0a3163ad..abf25955 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -24,7 +24,6 @@ "react-bootstrap": "^2.10.1", "react-datepicker": "^6.6.0", "react-dom": "^18.2.0", - "react-helmet-async": "^2.0.4", "react-loading-skeleton": "^3.4.0", "react-redux": "^9.0.4", "react-router-dom": "^6.22.1", diff --git a/frontend/src/app/content/pages/ManageTemplatesPage.tsx b/frontend/src/app/content/pages/ManageTemplatesPage.tsx index 478c8c53..4a995b8f 100644 --- a/frontend/src/app/content/pages/ManageTemplatesPage.tsx +++ b/frontend/src/app/content/pages/ManageTemplatesPage.tsx @@ -5,7 +5,6 @@ import { DocType } from '../../types/types'; import UploadTemplateModal from '../../components/modal/manage-templates/UploadTemplateModal'; import RemoveTemplateModal from '../../components/modal/manage-templates/RemoveTemplateModal'; import { getDocumentTypes } from '../../common/report'; -import { Helmet } from 'react-helmet-async'; const ManageTemplatesPage: FC = () => { const [showUploadModal, setShowUploadModal] = useState(false); @@ -51,14 +50,6 @@ const ManageTemplatesPage: FC = () => { return ( <> - - -

Manage Templates


diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx index f3468b03..0e21a10a 100644 --- a/frontend/src/index.tsx +++ b/frontend/src/index.tsx @@ -5,7 +5,6 @@ import App from './app/App'; import './app/App.css'; import reportWebVitals from './reportWebVitals'; import UserService from './app/service/user-service'; -import { HelmetProvider } from 'react-helmet-async'; const container = document.getElementById('root')!; const root = createRoot(container); @@ -13,9 +12,7 @@ const root = createRoot(container); const onAuthenticatedCallback = () => root.render( - - - + );