Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Mrazadar/pon 161/content security fix (#777)
Browse files Browse the repository at this point in the history
* revert: the react-helmet

* feat: added content-security-policy meta tag at the top
  • Loading branch information
mrazadar authored Jul 20, 2023
1 parent ff70192 commit 2225a3d
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 47 deletions.
23 changes: 0 additions & 23 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"prop-types": "^15.8.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-helmet": "^6.1.0",
"react-redux": "^7.2.8",
"react-router-dom": "^5.3.3",
"react-tooltip": "^4.2.21",
Expand Down
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="preconnect" href="<%= preconnectURL %>" />
<% }); %>
<title>Payment | edX</title>
<meta http-equiv="Content-Security-Policy" content="frame-src 'self' https://js.stripe.com https://hooks.stripe.com;"/>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="<%=htmlWebpackPlugin.options.FAVICON_URL%>" type="image/x-icon" />
Expand Down
21 changes: 0 additions & 21 deletions src/components/helmet-header/HelmetHeader.jsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import {
} from './payment';
import { SubscriptionPage } from './subscription';
import { Secure3dRedirectPage } from './subscription/secure-3d/Secure3dRedirectPage';
import { HelmetHeader } from './components/helmet-header/HelmetHeader';
import configureStore from './data/configureStore';

import './index.scss';
Expand Down Expand Up @@ -86,7 +85,6 @@ subscribe(APP_READY, () => {

ReactDOM.render(
<AppProvider store={configureStore()}>
<HelmetHeader />
<Header />
<main id="main">
<Switch>
Expand Down

0 comments on commit 2225a3d

Please sign in to comment.