javascript - Superagent Pass CSRF token on Redirect -


i have application which, retrieve data, makes request authorization route, adds jwt cookie , csrf header, before returning redirect actual url data stored.

while both jwt , csrf header passed redirect response, jwt passed along new url required, the csrf header not.

how can ensure csrf passed redirected url?

this code have in request:

.get('/auth')   .accept('application/json')   .query(query)   .withcredentials()   .end((err, response) => {     // final response   } 


Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -