From 3ec7065c39291ea430a490dd7023c53b1126f183 Mon Sep 17 00:00:00 2001 From: LiangliangSui <116876207+LiangliangSui@users.noreply.github.com> Date: Tue, 27 Feb 2024 10:19:55 +0800 Subject: [PATCH] Fix the problem that github star does not display. (#104) The current fury website github star displays abnormally. ![image](https://github.com/apache/incubator-fury-site/assets/116876207/91e18c62-8f63-45e0-9360-1c5c7636283c) The exception information is as follows: `Refused to frame 'https://ghbtns.com/' because it violates the following Content Security Policy directive: "frame-src 'self'".` Signed-off-by: LiangliangSui --- docusaurus.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 1ea947152..72f9f42d0 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -44,7 +44,9 @@ const config: Config = { ], plugins: [require.resolve('docusaurus-lunr-search')], themeConfig: { - // Replace with your project's social card + metadata: [ + {'http-equiv': 'Content-Security-Policy', content: "frame-src 'self' https://ghbtns.com"}, + ], navbar: { title: '', logo: {