Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Content-Security-Policy header #223

Merged
merged 3 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<meta property="og:image" content="/img/cover.png">
<meta name="keywords" content="NeoFS,Neo,Blockchain,智能经济,区块链">
<meta name="theme-color" content="#ffffff" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self' https://verify.walletconnect.com/; script-src 'self'; connect-src 'self' http://127.0.0.1:60004 https://dapi.o3.app:60003 https://rest.t5.fs.neo.org https://rest.fs.neo.org wss://relay.walletconnect.com; style-src 'unsafe-inline' 'self'; font-src 'self'; img-src 'self';">
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ export const App = () => {
Container creation is a paid operation, make sure you have sufficient NeoFS chain balance
</Notification>
)}
<Heading className="input_caption">{`Container cost is ${networkInfo ? 7 * (networkInfo.containerFee + networkInfo.namedContainerFee) * 1e-12 : '-'} GAS for mainnet now.`}</Heading>
<Heading className="input_caption">{`Container cost is ${networkInfo ? 7 * (networkInfo.containerFee + networkInfo.namedContainerFee) * 1e-12 : '-'} GAS for ${activeNet.toLowerCase()} now.`}</Heading>
<Form.Field>
<Form.Label>Name</Form.Label>
<Form.Control>
Expand Down
2 changes: 2 additions & 0 deletions src/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ const Profile = ({
<Tag style={{ margin: '5px 0 10px' }}>{walletData.name}</Tag>
</Heading>
<table>
<tbody>
<tr>
<td>{`${activeNet}:`}</td>
<td>{Math.trunc(neoBalance * 0.00000001)}</td>
Expand Down Expand Up @@ -218,6 +219,7 @@ const Profile = ({
)}
</td>
</tr>
</tbody>
</table>
<div style={{ display: 'flex', flexWrap: 'wrap' }}>
<Button
Expand Down
Loading