Fix Shipping dropdown not displayed because of an authentication error

This commit is contained in:
Daniel Hüsken 2025-02-28 09:03:13 +01:00
parent 758419c980
commit 3a740db289
No known key found for this signature in database
GPG key ID: 9F732DA37FA709E8
2 changed files with 6 additions and 6 deletions

View file

@ -21,8 +21,8 @@ export const handleShippingOptionsChange = async ( data, actions, config ) => {
credentials: 'same-origin',
headers: {
'Content-Type': 'application/json',
'X-WC-Store-API-Nonce':
config.ajax.update_customer_shipping.wp_rest_nonce,
'Nonce':
config.ajax.update_customer_shipping.wp_rest_nonce,
},
body: JSON.stringify( {
rate_id: shippingOptionId,
@ -106,9 +106,9 @@ export const handleShippingAddressChange = async ( data, actions, config ) => {
credentials: 'same-origin',
headers: {
'Content-Type': 'application/json',
'X-WC-Store-API-Nonce':
config.ajax.update_customer_shipping
.wp_rest_nonce,
'Nonce':
config.ajax.update_customer_shipping
.wp_rest_nonce,
},
body: JSON.stringify( {
shipping_address: cartData.shipping_address,