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

Solved: No permission to access pad #72

Open
oliver-s-k opened this issue Nov 2, 2023 · 0 comments
Open

Solved: No permission to access pad #72

oliver-s-k opened this issue Nov 2, 2023 · 0 comments

Comments

@oliver-s-k
Copy link

Hello,

this issue is no longer a problem for me, but maybe the solution might help someone who encounters a similar problem. None of the solutions I found regarding this error message were helpful, so I traced the error through the code. It turns out that Etherpad couldn't read the session cookie because it was undefined. The cookies appeared to be the same on both Moodle and Etherpad when inspected in the developer tools. Even moving Etherpad to the Moodle server so it has the same domain or performing a fresh install were a viable solution.

What didn't stand out to me initially, but is quite obvious once you know it, is that the cookies were set as HttpOnly, preventing Node.js from accessing them. During the Moodle upgrade, I also wanted to increase security, so I set HttpOnly on Apache.

A better solution is to keep these settings away from the webserver and instead use the settings provided by Moodle. This way, all cookies from Moodle will have the HttpOnly flag, but the ones set by mod_etherpadlite will not have that flag and can be read by Node.js.

Adios
Oliver

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

1 participant