You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Gengliang Wang (Jira)" <ji...@apache.org> on 2025/02/07 01:07:00 UTC

[jira] [Reopened] (SPARK-51104) Use self-host javascript and CSS in Spark website

     [ https://issues.apache.org/jira/browse/SPARK-51104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gengliang Wang reopened SPARK-51104:
------------------------------------

> 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: 4.0.0, 3.5.4
>            Reporter: Gengliang Wang
>            Assignee: Gengliang Wang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0, 3.5.5
>
>
> 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/bootstrap@5.0.2/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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org