custom-contact-forms icon indicating copy to clipboard operation
custom-contact-forms copied to clipboard

/ccf/v1/forms 403 rest_forbidden

Open tomas-javurek opened this issue 7 years ago • 2 comments

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".

tomas-javurek avatar Apr 12 '17 03:04 tomas-javurek

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

lwhiteley avatar May 02 '17 16:05 lwhiteley

How do you bypass this with a decoupled react app? How would I access WP_API_Settings from a component?

jakeFeldman avatar Oct 14 '17 04:10 jakeFeldman