Closed excenter closed 8 years ago
your PUT route should now just be a normal route protected by crumb (no need to reply with that index.js file)
make sure your request to the PUT route (or any PUT, POST, DELETE, PATCH route) contains the header X-CSRF-Token: {value-you-got-from-generate-route}
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
possibly related to #54 For a restful hapi pipeline, with the conf below, after I generate a crumb and get it back as a cookie. When I submit a data request I get
The index.js of the hapi server asks for this:
and the restful requests are
(fun fact, I never see 'crumb put has happened' when PUT-ing to /crumbed, the 500 previously mentioned hits first).
Is this a bug with the generate function, or have I just royally failed to configure crumb?