forked from misskey-dev/misskey
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
719b570
commit 22046d5
Showing
7 changed files
with
7 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,7 +97,7 @@ export class SecurityHeaderService { | |
...(this.config.contentSecurityPolicy?.frameSrc ?? []), | ||
].join(' '); | ||
|
||
this.basePolicy = `default-src 'self'; script-src ${baseScriptSrc}; style-src 'self' 'unsafe-inline' https://hcaptcha.com https://*.hcaptcha.com; img-src ${imgSrc}; media-src ${mediaSrc}; connect-src 'self' https://hcaptcha.com https://*.hcaptcha.com https://cloudflareinsights.com/cdn-cgi/rum; frame-src ${frameSrc}; object-src 'none'; base-uri 'none'; form-action 'self'; frame-ancestors 'none';${this.reportEnabled ? ' report-to csp;' : ''}`; | ||
this.basePolicy = `default-src 'self'; script-src ${baseScriptSrc}; style-src 'self' 'unsafe-inline' https://hcaptcha.com https://*.hcaptcha.com https://cdn.jsdelivr.net/npm/@tabler/[email protected]/dist/tabler-icons.min.css; font-src 'self' https://cdn.jsdelivr.net/npm/@tabler/[email protected]/dist/fonts/; img-src ${imgSrc}; media-src ${mediaSrc}; connect-src 'self' https://hcaptcha.com https://*.hcaptcha.com https://cloudflareinsights.com/cdn-cgi/rum; frame-src ${frameSrc}; object-src 'none'; base-uri 'none'; form-action 'self'; frame-ancestors 'none';${this.reportEnabled ? ' report-to csp;' : ''}`; | ||
//#endregion | ||
|
||
//#region bios.pug, cli.pug, flush.pug | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,8 +37,8 @@ html | |
link(rel='prefetch' href=serverErrorImageUrl) | ||
link(rel='prefetch' href=infoImageUrl) | ||
link(rel='prefetch' href=notFoundImageUrl) | ||
//- https://github.com/misskey-dev/misskey/issues/9842 | ||
link(rel='stylesheet' href='/assets/tabler-icons/tabler-icons.min.css?v3.3.0') | ||
link(rel='preconnect' href='https://cdn.jsdelivr.net') | ||
link(rel='stylesheet' href='https://cdn.jsdelivr.net/npm/@tabler/icons[email protected]/dist/tabler-icons.min.css') | ||
link(rel='modulepreload' href=`/vite/${clientEntry.file}`) | ||
|
||
if !config.clientManifestExists | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,14 +19,17 @@ | |
content="default-src 'self' https://newassets.hcaptcha.com/ https://challenges.cloudflare.com/ http://localhost:7493/; | ||
worker-src 'self'; | ||
script-src 'self' 'unsafe-eval' https://*.hcaptcha.com https://challenges.cloudflare.com https://esm.sh; | ||
style-src 'self' 'unsafe-inline'; | ||
style-src 'self' 'unsafe-inline' cdn.jsdelivr.net; | ||
font-src 'self' cdn.jsdelivr.net; | ||
img-src 'self' data: blob: www.google.com xn--931a.moe cdn.jsdelivr.net localhost:3000 localhost:5173 127.0.0.1:5173 127.0.0.1:3000; | ||
media-src 'self' localhost:3000 localhost:5173 127.0.0.1:5173 127.0.0.1:3000; | ||
connect-src 'self' localhost:3000 localhost:5173 127.0.0.1:5173 127.0.0.1:3000 https://newassets.hcaptcha.com; | ||
frame-src *;" | ||
/> | ||
<meta property="og:site_name" content="[DEV BUILD] Misskey" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="preconnect" href="https://cdn.jsdelivr.net" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/[email protected]/dist/tabler-icons.min.css" /> | ||
</head> | ||
|
||
<body> | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters