Examples

mklasen




Traveler

Web developer

WordPress Guru


WP REST request with fetch

October 18, 2017 by Marinus Klasen » - no comments

If you’re ever working with fetch to talk to the WP REST API, add “credentials: ‘include'” to the options of your request. This will allow the nonce to be received by the API.

Leave a Reply

Your email address will not be published. Required fields are marked *