Closed genediazjr closed 8 years ago
This is the expected behavior. In the browser the first request sets the crumb in a cookie. On subsequent requests, if the cookie is already set it doesn't set a new crumb again.
Since you're not passing a cookie in the server.inject
calls, it generates a new one every time.
If you want a new crumb generated more frequently, set a low cookie expiry using the plugins' cookieOptions
I see. Thank you for clarifying.
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.
I am not sure if this is just on my machine and if this is the intended design. I have tested this on chrome and firefox with the same result.
I have used the following code:
Using server.inject generates a new value. But accessing it on the browser does not.
First access.
Second access. Still the same crumb value