Answers for "samesite cookie nodejs"

1

samesite cookie nodejs

// Set a same-site cookie for first-party contexts
response.cookie('cookie1', 'value1', { sameSite: 'lax' });
// Set a cross-site cookie for third-party contexts
response.cookie('cookie2', 'value2', { sameSite: 'none', secure: true });
Posted by: Guest on November-03-2020
1

samesite cookie nodejs

response.setHeader('set-cookie', [
  'cookie1=value1; SameSite=Lax',
  'cookie2=value2; SameSite=None; Secure',
]);
Posted by: Guest on November-03-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language