This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a commit to branch new-site-dev
in repository https://gitbox.apache.org/repos/asf/pinot-site.git


The following commit(s) were added to refs/heads/new-site-dev by this push:
     new 6bae38b2 Add a complete CSP (#109)
6bae38b2 is described below

commit 6bae38b2478f79d0f9a86cb8b3797c055d1a1fbb
Author: Xiang Fu <[email protected]>
AuthorDate: Tue Apr 9 17:11:49 2024 +0800

    Add a complete CSP (#109)
---
 app/layout.tsx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app/layout.tsx b/app/layout.tsx
index 893b964b..6e2422f9 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -88,6 +88,10 @@ export default function RootLayout({ children }: { children: 
React.ReactNode })
                     href="/static/favicons/safari-pinned-tab.svg"
                     color="#5bbad5"
                 />
+                <meta
+                    http-equiv="Content-Security-Policy"
+                    content="default-src 'self';script-src 'self' 
'unsafe-eval' 'unsafe-inline' giscus.app analytics.umami.is www.youtube.com 
www.googletagmanager.com www.google-analytics.com;style-src 'self' 
'unsafe-inline';img-src * blob: data:;media-src *.s3.amazonaws.com;connect-src 
*;font-src 'self';frame-src 'self' giscus.app youtu.be youtube.com 
www.youtube.com"
+                />
                 <meta name="msapplication-TileColor" content="#000000" />
                 <meta name="theme-color" media="(prefers-color-scheme: light)" 
content="#fff" />
                 <meta name="theme-color" media="(prefers-color-scheme: dark)" 
content="#000" />


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to