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

young pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git


The following commit(s) were added to refs/heads/master by this push:
     new b51f2ad69ec fix: `kapa.ai` with CSP for `google.com` (#1773)
b51f2ad69ec is described below

commit b51f2ad69eca3415245ad8b027f7624f1f6cff87
Author: Leigang Zhang <[email protected]>
AuthorDate: Wed Feb 21 11:10:37 2024 +0800

    fix: `kapa.ai` with CSP for `google.com` (#1773)
---
 doc/src/pages/edit.tsx           | 4 ++++
 website/src/pages/contribute.tsx | 4 ++++
 website/src/pages/index.tsx      | 4 ++++
 3 files changed, 12 insertions(+)

diff --git a/doc/src/pages/edit.tsx b/doc/src/pages/edit.tsx
index b05c299ac4a..3a89924b4c0 100644
--- a/doc/src/pages/edit.tsx
+++ b/doc/src/pages/edit.tsx
@@ -51,6 +51,10 @@ const Edit: FC = () => {
           name="og:description"
           content="Apache APISIX is a dynamic, real-time, high-performance 
Cloud-Native API gateway, based on the Nginx library and etcd."
         />
+        <meta
+          httpEquiv="Content-Security-Policy"
+          content="frame-src 'self' https://www.google.com/ 
https://app.netlify.com/;";
+        />
       </Head>
       {!isLoading && (
         <div className="page">
diff --git a/website/src/pages/contribute.tsx b/website/src/pages/contribute.tsx
index 98e50b51709..a126954d972 100644
--- a/website/src/pages/contribute.tsx
+++ b/website/src/pages/contribute.tsx
@@ -74,6 +74,10 @@ const Contribute: FC = () => {
           name="twitter:description"
           content="Help new partners to Apache APISIX Community and make first 
contribution."
         />
+        <meta
+          httpEquiv="Content-Security-Policy"
+          content="frame-src 'self' https://www.google.com/ 
https://app.netlify.com/;";
+        />
       </Head>
       <Page>
         <PageTitle>
diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx
index d4284240141..c1379846572 100644
--- a/website/src/pages/index.tsx
+++ b/website/src/pages/index.tsx
@@ -63,6 +63,10 @@ const Index: FC = () => (
         name="og:description"
         content="Apache APISIX is a dynamic, real-time, high-performance 
Cloud-Native API gateway, based on the Nginx library and etcd."
       />
+      <meta
+        httpEquiv="Content-Security-Policy"
+        content="frame-src 'self' https://www.google.com/ 
https://app.netlify.com/;";
+      />
     </Head>
     <HeroSection />
     <Architecture />

Reply via email to