Gengliang Wang created SPARK-51104:
--------------------------------------

             Summary: Use self-host javascript and CSS in Spark website
                 Key: SPARK-51104
                 URL: https://issues.apache.org/jira/browse/SPARK-51104
             Project: Spark
          Issue Type: Task
          Components: Documentation
    Affects Versions: 3.5.4, 4.0.0
            Reporter: Gengliang Wang
            Assignee: Gengliang Wang


Currently, the Spark website ([https://spark.apache.org/docs/latest/)] fails to 
load bootstrap.bundle.min.js/jquery.js/etc due to the following errors

```

Refused to load the stylesheet '<URL>' because it violates the following 
Content Security Policy directive: "style-src 'self' 'unsafe-inline' data:". 
Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a 
fallback.
Understand this errorAI
latest/:1 Refused to load the script 
'https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js' 
because it violates the following Content Security Policy directive: 
"script-src 'self' 'unsafe-inline' 'unsafe-eval' 
https://analytics.apache.org/";. Note that 'script-src-elem' was not explicitly 
set, so 'script-src' is used as a fallback.
Understand this errorAI
latest/:1 Refused to load the script 'https://code.jquery.com/jquery.js' 
because it violates the following Content Security Policy directive: 
"script-src 'self' 'unsafe-inline' 'unsafe-eval' 
https://analytics.apache.org/";. Note that 'script-src-elem' was not explicitly 
set, so 'script-src' is used as a fallback.

```

To fix the issue, I suggest using self-host javascript and CSS in Spark website



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to