Explicitly send cookies in fetch

Not sent by default in old browsers
This commit is contained in:
Alex P 2022-09-09 16:28:58 +03:00
parent 5be88678e7
commit 23cb96e6f9
12 changed files with 15 additions and 1 deletions

View file

@ -10,6 +10,7 @@ document.addEventListener(
PayPalCommerceGatewayVaulting.delete.endpoint,
{
method: 'POST',
credentials: 'same-origin',
headers: {
'content-type': 'application/json'
},