Skip to content

Commit

Permalink
Merge pull request #190 from bcgov/TICDI-351
Browse files Browse the repository at this point in the history
Ticdi 351
  • Loading branch information
mgtennant authored May 1, 2024
2 parents d140028 + acb2e50 commit a84f266
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 40 deletions.
2 changes: 1 addition & 1 deletion frontend/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
}
Expand Down
25 changes: 0 additions & 25 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 0 additions & 9 deletions frontend/src/app/content/pages/ManageTemplatesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean>(false);
Expand Down Expand Up @@ -51,14 +50,6 @@ const ManageTemplatesPage: FC = () => {

return (
<>
<Helmet>
<meta
httpEquiv="Content-Security-Policy"
content={`
frame-src https://*.gov.bc.ca blob:;
`}
></meta>
</Helmet>
<h1>Manage Templates</h1>
<hr />
<div className="col-md-3">
Expand Down
5 changes: 1 addition & 4 deletions frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@ 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);

const onAuthenticatedCallback = () =>
root.render(
<StrictMode>
<HelmetProvider>
<App />
</HelmetProvider>
<App />
</StrictMode>
);

Expand Down

0 comments on commit a84f266

Please sign in to comment.