Skip to content

Instantly share code, notes, and snippets.

@lukasfarina
Last active April 30, 2020 02:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukasfarina/cc30cee3057717144b9dca2cef907676 to your computer and use it in GitHub Desktop.
Save lukasfarina/cc30cee3057717144b9dca2cef907676 to your computer and use it in GitHub Desktop.
[SOLVED] Respomnse woocommerce_rest_cannot_view at POSTMAN using Wordpress REST API on localhost,

Testing with postman.
If you're running on localhost for example, simply use OAuth 1.0, providing only the consumer key and consumer secret and leaving all other properties blank.

If Basic Auth with HTTPS not working, do this:
You have to configure apache http.conf or .htaccess and add this line to be sure that apache will return authorization header:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment