mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-13 20:56:19 -08:00
feat(electron): harden renderer security
Scope playback request header overrides to active stream origins and document the Electron runtime security contract.
This commit is contained in:
1 parent
2184fd7c45
commit
fc449ca73e
16 files changed
+734
-67
No files matched your search
@@ -6,6 +6,10 @@
|
||||
<base href="/" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta
|
||||
http-equiv="Content-Security-Policy"
|
||||
content="default-src 'self'; base-uri 'self'; object-src 'none'; frame-src 'none'; form-action 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' http: https: file: data: blob:; font-src 'self' data:; media-src 'self' http: https: file: data: blob:; connect-src 'self' http: https: ws: wss: blob: data:; worker-src 'self' blob:"
|
||||
/>
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="IPTVnator" />
|
||||
<meta property="og:url" content="https://iptvnator.vercel.app" />
|
||||
|
||||
Vendored
+5
-1
@@ -67,7 +67,11 @@ declare global {
|
||||
filePath: string,
|
||||
content: string
|
||||
) => Promise<{ success: boolean }>;
|
||||
setUserAgent: (userAgent: string, referer?: string) => void;
|
||||
setUserAgent: (
|
||||
userAgent?: string | null,
|
||||
referer?: string | null,
|
||||
scopeUrl?: string | null
|
||||
) => Promise<boolean>;
|
||||
openInMpv: (
|
||||
url: string,
|
||||
title: string,
|
||||
|
||||
Reference in new issue
Block a user