0

How to set a cross-domain cookie and redirect in express ??

res.cookie('token' ,'token');
res.cookie('id', 'id');
res.redirect(301, 'https://example.com');

This is the code i am using but it is not working

Sai Reddy
  • 67
  • 5

0 Answers0