Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Documentation Website Not Loading #20728

Open
tonyawad88 opened this issue Feb 1, 2025 · 16 comments
Open

[Bug] Documentation Website Not Loading #20728

tonyawad88 opened this issue Feb 1, 2025 · 16 comments
Assignees
Labels
en This issue is in English website

Comments

@tonyawad88
Copy link

Version

latest

Link to Minimal Reproduction

https://echarts.apache.org/en/api.html

Steps to Reproduce

Currently the website at https://echarts.apache.org/en/api.html isn't loading and throwing errors in both Firefox and Chrome. Errors below:

Refused to load the stylesheet 'https://fastly.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline'". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback.
api.html:12 Refused to load the stylesheet 'https://fastly.jsdelivr.net/npm/[email protected]/lib/theme-chalk/index.css' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline'". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback.
$ is not defined
Uncaught TypeError: Cannot read properties of undefined (reading 'directive')
echartsDoc is not defined

Current Behavior

As mentioned above

Expected Behavior

Page loads properly

Environment

- OS:MacOS
- Browser: Firefox and Chrome
- Framework: N/A

Any additional comments?

No response

@tonyawad88 tonyawad88 added the bug label Feb 1, 2025
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Feb 1, 2025
@Lerrissirrel
Copy link

It's more than just this one page; I ran into this on the main page and examples page too. Thought I was going crazy. FWIW the latest versions of those pages on the wayback machine (From Jan 28) work.

@SpyridonLaz
Copy link

Me and my colleagues face the same issue since today morning. +1

@malikmmoaz
Copy link

Image Image

@justy152
Copy link

justy152 commented Feb 2, 2025

Yep it's unusable. Seems like the website is hosted on github? Was looking to see if I could fix it myself but didn't get very far

@plainheart plainheart added website and removed pending We are not sure about whether this is a bug/new feature. bug labels Feb 2, 2025
@plainheart plainheart self-assigned this Feb 2, 2025
@plainheart
Copy link
Member

plainheart commented Feb 2, 2025

We are sorry about this. The ECharts website has to take some time to adapt to the new Content Security Policy of Apache server before March 1st.

@malikmmoaz
Copy link

https://www.devdoc.net/web/echarts-site-20190821/en/api.html#echarts

temp fix

@mizushino
Copy link

This is due to the Content Security Policy.
You can view the content by using the Chrome extension "Disable Content Security Policy."
However, please use this extension with caution.

@Avaray
Copy link

Avaray commented Feb 3, 2025

This is due to the Content Security Policy. You can view the content by using the Chrome extension "Disable Content Security Policy." However, please use this extension with caution.

Wow, it works.

https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP

@justy152
Copy link

justy152 commented Feb 3, 2025 via email

@helgasoft
Copy link

helgasoft commented Feb 4, 2025

seems resolved now. But the examples inside still do not show, some error "echarts.apache.org refused to connect"

@Avaray
Copy link

Avaray commented Feb 4, 2025

seems resolved now

Nice

@Ovilia
Copy link
Contributor

Ovilia commented Feb 5, 2025

We are extremely sorry for the unpleasant experience caused by the unavailability of the website. This was due to the update of the Content Security Policy by the Apache Software Foundation. We have adopted a temporary solution to ensure the accessibility of the website. If you still encounter any problems, please give us your feedback. We are currently communicating with ASF, hoping to further address the issue of access speed while ensuring network security.

@Ovilia Ovilia closed this as completed Feb 5, 2025
@helgasoft
Copy link

Many official examples are still not showing, like
https://echarts.apache.org/examples/en/editor.html?c=bar-race-country
https://echarts.apache.org/examples/en/editor.html?c=bar-histogram
https://echarts.apache.org/examples/en/editor.html?c=heatmap-bmap
https://echarts.apache.org/examples/en/editor.html?c=animating-contour-on-globe&gl=1

Currently any file not coming from domain apache.org is refused.
Before, there were several other domains allowed, like baidu.com, jsdelivr.net, etc.
So the security issue is not resolved quite yet.

@2548085610
Copy link

https://www.devdoc.net/web/echarts-site-20190821/en/api.html#echarts

temp fix

非常感谢/Thank you

@bonatoc
Copy link

bonatoc commented Feb 22, 2025

@helgasoft
Copy link

The dropdown for ECharts version selection has disappeared from the Editor.
Hope this is not permanent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English website
Projects
None yet
Development

No branches or pull requests