11

Whenever I open a Colaboratory Document I always get the same error message:

NotSupportedError: Failed to register a ServiceWorker: The user denied permission to use Service Worker.

This is happening on chrome and my browser allows for ServiceWorkers (chrome://serviceworker-internals/), what's going on? Because the thing is all the code still runs.

enter image description here

4

3 回答 3

18

Colab 的输出框架使用服务工作者来支持一些功能,例如显示更丰富的图表(Altair 和 Plot.ly)。

错误消息表明您的浏览器中禁用了第三方 cookie,这将阻止浏览器服务人员工作。该选项应在 chrome://settings/content/cookies 下配置。

于 2018-01-16T18:27:36.450 回答
3

我尝试在 chrome 链接 (chrome://settings/content/cookies) 中将以下内容列入白名单:

https://[*.]googleusercontent.com:443
[*.]colab.research.google.com

这是最好的方法,比简单地释放第 3 部分 cookie 似乎更有效。

于 2019-03-15T19:43:50.963 回答
1

通常这个错误有两个原因:

1-您不允许在 colab 域上使用 cookie,因此您需要更改浏览器设置

2-您正在使用广告拦截器

于 2018-03-09T20:20:03.937 回答