mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Explicitly send cookies in fetch
Not sent by default in old browsers
This commit is contained in:
parent
5be88678e7
commit
23cb96e6f9
12 changed files with 15 additions and 1 deletions
|
@ -80,6 +80,7 @@ const ppcp_onboarding = {
|
|||
|
||||
fetch(PayPalCommerceGatewayOnboarding.pui_endpoint, {
|
||||
method: 'POST',
|
||||
credentials: 'same-origin',
|
||||
body: JSON.stringify({
|
||||
nonce: PayPalCommerceGatewayOnboarding.pui_nonce,
|
||||
checked: onboard_pui.checked
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue