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

官方启用CSP规则之后无法使用 #5

Closed
zglhappy opened this issue May 7, 2020 · 6 comments
Closed

官方启用CSP规则之后无法使用 #5

zglhappy opened this issue May 7, 2020 · 6 comments

Comments

@zglhappy
Copy link

zglhappy commented May 7, 2020

尊敬的开发者:
您好,
今天登陆微信读书再使用,发现已经无法自动阅读。
去知乎看了一下,也有小伙伴遇到同样问题,推测可能失效。
您是否便于解决?如有打扰,非常抱歉!
感谢您的耐心阅读。

@androidfans
Copy link

VM159:1 Refused to create a worker from 'blob:https://weread.qq.com/4b74b5a8-1e66-4892-8aab-2235e9675345' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' 'unsafe-eval' 'nonce-FFE0DF8E008967ACCC09FA33F50CC7A2' https://weread-1258476243.file.myqcloud.com/ 'report-sample'". Note that 'worker-src' was not explicitly set, so 'script-src' is used as a fallback.

@DoooReyn
Copy link
Owner

DoooReyn commented May 7, 2020

从目前情况来看,是官方启用了CSP规则,因此使用Worker作为定时器已不可取。正在寻求解决方案。

@DoooReyn DoooReyn mentioned this issue May 7, 2020
@DoooReyn DoooReyn changed the title 已经无法使用 官方启用CSP规则之后无法使用 May 7, 2020
@androidfans
Copy link

用 selenium 实现了一个。 部署到腾讯云上执行了

@DoooReyn
Copy link
Owner

DoooReyn commented May 7, 2020

用 selenium 实现了一个。 部署到腾讯云上执行了

@androidfans 可以分享一下。

@DoooReyn
Copy link
Owner

DoooReyn commented May 7, 2020

目前已修复,各位可以更新测试看看。

@DoooReyn DoooReyn pinned this issue May 7, 2020
@zglhappy
Copy link
Author

zglhappy commented May 7, 2020

非常感谢您的更新~
现在已经可以正常使用。
祝您万事胜意~

@DoooReyn DoooReyn closed this as completed May 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants