lusca
lusca copied to clipboard
set csrf token on response for bypassed POST urls
When a URL is added to be bypassed, CSRF is not set in the response which leads to subsequent POST requests throwing a 403.
This change sets the CSRF token in res.locals
before bypassing the validation.
Fixes - https://github.com/krakenjs/lusca/issues/142