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 322b1a861f6 fix: try to make kapa work normally by setting CSP header
(#1774)
322b1a861f6 is described below
commit 322b1a861f6fb430137aaf2db723114a53ed0aea
Author: Leigang Zhang <[email protected]>
AuthorDate: Thu Feb 22 11:43:27 2024 +0800
fix: try to make kapa work normally by setting CSP header (#1774)
---
.htaccess | 1 +
doc/src/pages/edit.tsx | 4 ----
website/src/pages/contribute.tsx | 4 ----
website/src/pages/index.tsx | 4 ----
4 files changed, 1 insertion(+), 12 deletions(-)
diff --git a/.htaccess b/.htaccess
index e8a96904268..d16198e4eba 100644
--- a/.htaccess
+++ b/.htaccess
@@ -18,6 +18,7 @@ Options -Indexes
Header set Access-Control-Allow-Origin: https://apisix.apache.org
Header set Access-Control-Allow-Methods "*"
Header set Access-Control-Allow-Headers "*"
+ Header set Content-Security-Policy "frame-src 'self'
https://www.google.com https://app.netlify.com"
</IfModule>
<IfModule mod_expires.c>
diff --git a/doc/src/pages/edit.tsx b/doc/src/pages/edit.tsx
index 3a89924b4c0..b05c299ac4a 100644
--- a/doc/src/pages/edit.tsx
+++ b/doc/src/pages/edit.tsx
@@ -51,10 +51,6 @@ 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 a126954d972..98e50b51709 100644
--- a/website/src/pages/contribute.tsx
+++ b/website/src/pages/contribute.tsx
@@ -74,10 +74,6 @@ 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 c1379846572..d4284240141 100644
--- a/website/src/pages/index.tsx
+++ b/website/src/pages/index.tsx
@@ -63,10 +63,6 @@ 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 />