mirror of
https://github.com/zhigang1992/wallet.git
synced 2026-01-12 22:53:27 +08:00
fix: csp img-src allowed urls
This commit is contained in:
@@ -31,8 +31,7 @@ const environmentIcons = {
|
||||
const contentSecurityPolicyEnvironment = {
|
||||
development:
|
||||
"script-src 'self' 'wasm-unsafe-eval'; object-src 'self'; frame-src 'none'; frame-ancestors 'none';",
|
||||
production:
|
||||
"default-src 'none'; connect-src *; style-src 'unsafe-inline'; img-src 'self' data: https:; script-src 'self' 'wasm-unsafe-eval'; object-src 'none'; frame-src 'none'; frame-ancestors 'none';",
|
||||
production: `default-src 'none'; connect-src *; style-src 'unsafe-inline'; img-src 'self' data: https:; script-src 'self' 'wasm-unsafe-eval'; object-src 'none'; frame-src 'none'; frame-ancestors 'none';`,
|
||||
};
|
||||
|
||||
const defaultIconEnvironment = {
|
||||
|
||||
@@ -9,7 +9,7 @@ export function Favicon({ origin }: FaviconProps) {
|
||||
if (hasError) return null;
|
||||
return (
|
||||
<img
|
||||
src={`http://www.google.com/s2/favicons?domain=${origin}`}
|
||||
src={`https://www.google.com/s2/favicons?domain=${origin}`}
|
||||
onError={() => setHasError(true)}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -25,7 +25,7 @@ interface BitcoinTransactionStatus {
|
||||
block_time?: number | null;
|
||||
}
|
||||
|
||||
interface BitcoinTransactionVectorOutput {
|
||||
export interface BitcoinTransactionVectorOutput {
|
||||
scriptpubkey: string;
|
||||
scriptpubkey_asm: string;
|
||||
scriptpubkey_type: string;
|
||||
|
||||
Reference in New Issue
Block a user