Skip to content

Commit 322b1a8

Browse files
authored
fix: try to make kapa work normally by setting CSP header (#1774)
1 parent b51f2ad commit 322b1a8

File tree

4 files changed

+1
-12
lines changed

4 files changed

+1
-12
lines changed

.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Options -Indexes
1818
Header set Access-Control-Allow-Origin: https://apisix.apache.org
1919
Header set Access-Control-Allow-Methods "*"
2020
Header set Access-Control-Allow-Headers "*"
21+
Header set Content-Security-Policy "frame-src 'self' https://www.google.com https://app.netlify.com"
2122
</IfModule>
2223

2324
<IfModule mod_expires.c>

doc/src/pages/edit.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ const Edit: FC = () => {
5151
name="og:description"
5252
content="Apache APISIX is a dynamic, real-time, high-performance Cloud-Native API gateway, based on the Nginx library and etcd."
5353
/>
54-
<meta
55-
httpEquiv="Content-Security-Policy"
56-
content="frame-src 'self' https://www.google.com/ https://app.netlify.com/;"
57-
/>
5854
</Head>
5955
{!isLoading && (
6056
<div className="page">

website/src/pages/contribute.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ const Contribute: FC = () => {
7474
name="twitter:description"
7575
content="Help new partners to Apache APISIX Community and make first contribution."
7676
/>
77-
<meta
78-
httpEquiv="Content-Security-Policy"
79-
content="frame-src 'self' https://www.google.com/ https://app.netlify.com/;"
80-
/>
8177
</Head>
8278
<Page>
8379
<PageTitle>

website/src/pages/index.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ const Index: FC = () => (
6363
name="og:description"
6464
content="Apache APISIX is a dynamic, real-time, high-performance Cloud-Native API gateway, based on the Nginx library and etcd."
6565
/>
66-
<meta
67-
httpEquiv="Content-Security-Policy"
68-
content="frame-src 'self' https://www.google.com/ https://app.netlify.com/;"
69-
/>
7066
</Head>
7167
<HeroSection />
7268
<Architecture />

0 commit comments

Comments
 (0)