Closed m0urs closed 5 years ago
The cookie should be correctly set by Ownpad, but the HttpOnly
might prevent Etherpad from reading able it. I had a quick look, the cookie seems to be retrieved in a JavaScript code:
Ah, thanks for that hint. Google tells me that it is not possible to read a HTTPOnly cookie via Javascript. So I guess there is no or no simple solution for that issue and I might need to live with it and disable that directive on my Nextcloud instance.
I can create protected pads but not access protected pads if I configure my Owncloud instance to use secure cookies.
The issue happens if I add the following directive to my Owncloud Apache config:
Header edit Set-Cookie "(?i)^((?:(?!;\s?HttpOnly).)+)$" "$1; HttpOnly"
If I disable it, everything works fine.
Unprotected pads work fine even with that setting.
Any idea what needs to be done so that I can use this configuration with Ownpad?