You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fury.apache.org by ch...@apache.org on 2024/02/27 02:19:59 UTC

(incubator-fury-site) branch main updated: Fix the problem that github star does not display. (#104)

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

chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-fury-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 3ec7065  Fix the problem that github star does not display. (#104)
3ec7065 is described below

commit 3ec7065c39291ea430a490dd7023c53b1126f183
Author: LiangliangSui <11...@users.noreply.github.com>
AuthorDate: Tue Feb 27 10:19:55 2024 +0800

    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 <co...@gmail.com>
---
 docusaurus.config.ts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/docusaurus.config.ts b/docusaurus.config.ts
index 1ea9471..72f9f42 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: {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org