Open tomas-javurek opened 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
How do you bypass this with a decoupled react app? How would I access WP_API_Settings
from a component?
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".