tlovett1 / custom-contact-forms

Build beautiful custom forms and manage submissions the WordPress way.
https://taylorlovett.com
161 stars 50 forks source link

/ccf/v1/forms 403 rest_forbidden #317

Open tomas-javurek opened 7 years ago

tomas-javurek commented 7 years ago

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

lwhiteley commented 7 years ago

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

jakeFeldman commented 6 years ago

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