Closed knownasilya closed 10 years ago
Looks like lusca depends on req.session
to be present via something like express-session. Probably a good idea to provide a warning if session doesn't exist.
Also a note on the readme saying that it depends on a session middleware..
I agree on both points. We will make changes accordingly.
https://github.com/krakenjs/lusca/commit/33795e8077c412d92e74c2aaf58567103426c439 resolves this issue with a thrown error when req.session is not available. In addition, a bold warning has been added to README to indicate that a session object is required in order to use lusca. This is published in v1.0.2
Error when accessing
/
endpoint.My lusca options look like this: