Ajax call returns 403 forbidden when rates is sellected
-
Hi guys we had the following issue:
The ajax call https://shop.mysite.com.au/?wc-ajax=update_order_review returns 403 Forbidden when a rate is selected.My programmer had to do a modification to solve this:
`Reason: The plugin “transdirect-shipping” adds very long data to <form>’s <input name=”billing_value”> field (15kb), and the form ajax sends with it then causes 403 Forbidden.Solution: I changed /wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js
post_data:g(‘form.checkout’).serialize()
to
post_data:g(‘form.checkout’).find(‘input[name!=billing_value]’).serialize()
in order to exclude the very long data “billing_value”.Can you guys please review and release a proper fix for this issue?
Thank you, Eco.
- The topic ‘Ajax call returns 403 forbidden when rates is sellected’ is closed to new replies.