This is an automated email from the ASF dual-hosted git repository. yihaochen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/skywalking-website.git
The following commit(s) were added to refs/heads/master by this push: new 2d7abfb91a2 Fix kapa with htaccess rule (#680) 2d7abfb91a2 is described below commit 2d7abfb91a26725933a364d7b6508af7cc01b527 Author: Superskyyy <supersk...@outlook.com> AuthorDate: Thu Feb 22 00:27:55 2024 -0500 Fix kapa with htaccess rule (#680) * Revert and change htaccess --- .htaccess | 6 +++++- themes/docsy/layouts/partials/head.html | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.htaccess b/.htaccess index 9fded1ed818..8c4ad374a80 100644 --- a/.htaccess +++ b/.htaccess @@ -1 +1,5 @@ -ErrorDocument 404 /404.html \ No newline at end of file +ErrorDocument 404 /404.html + +<IfModule mod_headers.c> + Header set Content-Security-Policy "frame-src 'self' https://www.google.com https://app.netlify.com" +</IfModule> diff --git a/themes/docsy/layouts/partials/head.html b/themes/docsy/layouts/partials/head.html index c4e5613cd01..a0e7bf09d93 100644 --- a/themes/docsy/layouts/partials/head.html +++ b/themes/docsy/layouts/partials/head.html @@ -3,8 +3,6 @@ <meta name="twitter:site" content="skywalking.apache.org"> <meta name="twitter:image:src" content="https://skywalking.apache.org/images/skywalking_400x400.png"> <meta property="og:image" content="https://skywalking.apache.org/images/skywalking_400x400.png"> -<!--Google needs to be allowed for kapa.ai widget to work--> -<meta http-equiv="Content-Security-Policy" content="frame-src 'self' https://www.google.com https://app.netlify.com;"> {{ hugo.Generator }}