问题
I am trying out Google Colab, but then I keep getting this pop up box that says:
Error
Could not access the resources needed to display output.
This is probably because third-party cookies are not allowed by your
browser.
NotSupportedError: Failed to register a ServiceWorker: The user
denied permission to use Service Worker.
While turn off Block third party cookies
worked for me from here, I would like to keep the setting to be turned on at all times for the sake of our privacy.
Currently I will have to have another tab next to the Colab tab the so that after I have finished using Colab, I can turn it off right away and not to forget it. BUT I would have to do it every time I use Colab.
To solve this, I have tried to follow the chrome help guide and added https://colab.research.google.com
and [*.]google.com
to the Allow whitelist on Cookies. However the error pop up would still show. I also tried https://colab.research.google.com[/*]
, but chrome said its not a vaild domain.
Is there a way to allow Colab domain cookies for that?
回答1:
The output cell is an <iframe> element. It has a url like
https://jbe1910iol-colab.googleusercontent.com/v2/usercontent/8b5e8f2bbe60490e/outputframe.html
So, you can try adding [*.]googleusercontent.com
to the whitelist as well.
Not sure if it will work though. Hope it does.
回答2:
For Google Chrome, go to the cookies settings page
Type this in the address bar
chrome://settings/content/cookies
In
Allow
section, click add button.paste this
[*.]googleusercontent.com
That's all.
As Korakot Chaovavanich's explanation, I added steps
来源:https://stackoverflow.com/questions/50289535/allow-a-google-colab-domain-cookies-on-chrome