custom-contact-forms
custom-contact-forms copied to clipboard
/ccf/v1/forms 403 rest_forbidden
Not logged user cannot get /ccf/v1/forms nor /ccf/v1/forms/$id even if "Require User to Be Logged In" is set to "no".
i resolved this issue by passing the wp_nonce
in the request
'X-WP-Nonce': WP_API_Settings.nonce
where WP_API_Settings
is added to the global scope by wp-api
How do you bypass this with a decoupled react app? How would I access WP_API_Settings
from a component?