Embedding etherpad-lite without cookies?
See original GitHub issuename: Feature request about: Suggest an idea for this project title: Embedding etherpad-lite without cookies? labels: enhancement assignees:
Is your feature request related to a problem? Please describe.
I am using etherpad-lite as an integration widget in Matrix/element. Thus etherpad-lite (provided by some external service provider, e.g. pad.disroot.org
) is embedded via iframe
into the website.
Sadly this fails to work, if the browser is configured to block 3rd party cookies.
Privacy oriented browsers (Tor browser, Brave) block 3rd party cookies by default.
Since March 2020 even Safari blocks 3rd party cookies by default. The announcement also contains some hints, how services can handle this change.
Thus it will probably become harder and harder to embed etherpad-lite into external websites. This would be a pity.
Describe the solution you’d like
I can image the following ways to work around the 3rd party cookie blocking:
- A) use the Storage Access API instead
- B) gracefully ignore cookie rejections (not storing a session)
But I have little knowledge in this field. Thus feel free to ignore my suggestions.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:12 (4 by maintainers)
I encountered the same problem. An etherpad in an iframe on safari would fail to load because of an unhandled promise rejection:
I don’t have time atm to make a proper pull request but here’s how I fixed it. in
src/static/js/pad_cookie.js
I changed getPref and setPref to handle cases where readPrefs would returnnull
:hm, reopen again …?