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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -