Timeline for Register rest field authentication with REST API
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 12, 2018 at 7:36 | answer | added | Mark Kaplun | timeline score: 0 | |
Feb 12, 2018 at 7:19 | comment | added | swissspidy |
The documentation shows you how to get the proper nonce. You can enqueue the 'wp-api' script and the nonce will be available via wpApiSettings.nonce . If you want to do it on your own, use wp_create_nonce( 'wp_rest' ) to create the nonce.
|
|
Feb 12, 2018 at 7:14 | comment | added | Ynhockey | I did, hence the question (see last paragraph). I need to be able to output this info without additional HTTP headers that aren't in GET, and when trying to set GET _wpnonce it didn't work—I probably didn't get the right nonce. This is where my understanding seems to end. | |
Feb 12, 2018 at 7:03 | history | edited | Ynhockey | CC BY-SA 3.0 |
deleted 5 characters in body
|
Feb 11, 2018 at 17:40 | comment | added | swissspidy | You should read the documentation about authentication with the REST API. | |
Feb 11, 2018 at 15:39 | history | asked | Ynhockey | CC BY-SA 3.0 |