AbstractCartRoute::check_nonce( WP_REST_Request $request )

For non-GET endpoints, require and validate a nonce to prevent CSRF attacks.


Description Description

Nonces will mismatch if the logged in session cookie is different! If using a client to test, set this cookie to match the logged in cookie in your browser.


Parameters Parameters

$request

(Required) Request object.


Top ↑

Return Return

(WP_Error|boolean)


Top ↑

Source Source

File: packages/woocommerce-blocks/src/StoreApi/Routes/AbstractCartRoute.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.