-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Remove inline javascript to comply with some CSP #108
Comments
I'll look into it but wikihow is different to other scrapers in that we mostly copy the main chunk of content from the online source and put it into the ZIM. In other scraper, we usually manually pick what we're interested in and build a custom template from scratch. Given the very flexible nature of the mediawiki behind wikihow, there can be inline JS inside articles… |
@rgaudin an we easily secure that our code at least does not have inline js? I’m not sure about the frequency of in,ine js in WikiHow code? |
@mossroy I've removed our part but many pages have inline JS. Though it should be mostly harmless to just ignore them. |
Thanks! |
@mossroy I have restarted https://farm.openzim.org/pipeline/3d47bde79fa420ce696d2026 |
This pipeline has failed. |
Thanks @rgaudin ! I confirm the issue is fixed in this wikihow ZIM file. By the way, I opened some very similar issues on other scrapers. See the list in kiwix/kiwix-js#789 (comment) |
It does not seem to block the main usage, but the following inline javascript seems to be in every page, and is blocked :
The text was updated successfully, but these errors were encountered: