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
Post a Comment