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(
PayPalCommerceGatewayWebhooksStatus.resubscribe.endpoint,
{
method: 'POST',
credentials: 'same-origin',
headers: {
'content-type': 'application/json'
},
@ -52,6 +53,7 @@ document.addEventListener(
PayPalCommerceGatewayWebhooksStatus.simulation.start.endpoint,
{
method: 'POST',
credentials: 'same-origin',
headers: {
'content-type': 'application/json'
},
@ -106,6 +108,7 @@ document.addEventListener(
PayPalCommerceGatewayWebhooksStatus.simulation.state.endpoint,
{
method: 'GET',
credentials: 'same-origin',
}
);