Title: Authorization header not found.
Last modified: August 31, 2016

---

# Authorization header not found.

 *  [zagreus](https://wordpress.org/support/users/zagreus/)
 * (@zagreus)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/authorization-header-not-found/)
 * I’m trying to test the plugin with my custom endpoints and am having some difficulty.
   I’ve successfully created a token and have added this to my header.
 * `Authorization: Bearer e...<snip>`
 * When I attempt to validate the token I get the following returned:
 * `{"code":"jwt_auth_no_auth_header","message":"Authorization header not found.","
   data":{"status":403}}`
 * I’m running this on MAMP on my local development machine, and have modified the
   wp-config.php to include the secret key and have modified my .htaccess file too.
 * Thanks in advance for any help.
 * [https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/)

Viewing 1 replies (of 1 total)

 *  [ahgood](https://wordpress.org/support/users/ahgood/)
 * (@ahgood)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/authorization-header-not-found/#post-7294877)
 * Modified .htaccess file as following then it works for me, my WordPress installed
   on on folder /wp1/:
 * RewriteEngine On
    RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^(.*) –[
   E=HTTP_AUTHORIZATION:%1] RewriteBase /wp1/ RewriteRule ^index\.php$ – [E=X-HTTP_AUTHORIZATION:%{
   HTTP:Authorization},QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{
   REQUEST_FILENAME} !-d RewriteRule . /wp1/index.php [E=X-HTTP_AUTHORIZATION:%{
   HTTP:Authorization},QSA,L]
 * *Original info come from: [https://github.com/auth0/wp-jwt-auth/issues/1](https://github.com/auth0/wp-jwt-auth/issues/1)

Viewing 1 replies (of 1 total)

The topic ‘Authorization header not found.’ is closed to new replies.

 * ![](https://ps.w.org/jwt-authentication-for-wp-rest-api/assets/icon-256x256.jpg?
   rev=3372068)
 * [JWT Authentication for WP REST API](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ahgood](https://wordpress.org/support/users/ahgood/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/authorization-header-not-found/#post-7294877)
 * Status: not resolved