Tmeister / wp-api-jwt-auth

A simple plugin to add JSON Web Token (JWT) Authentication to WP REST API
GNU General Public License v2.0
549 stars 159 forks source link

JWT Malformed #212

Open chsalamin opened 3 years ago

chsalamin commented 3 years ago

Hello!

I've all tried what mention in the issue https://github.com/Tmeister/wp-api-jwt-auth/issues/1 But I still have the error "Authorization header malformed." status 403

The Apache is on a server that I cannot restart, should Apache restart to function?

In my .htaccess I've to block , one for WPSuperCache and one for Wordpress... I've tried to put the two next lines in the two block without success, just after "Rewrite Base /": RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1] RewriteRule ^index.php$ - [L]

Finally the line "SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1" should be place before the or after or it neverminds?

Thank you very much for your answer.

Chantal

rodrigo-arias commented 3 years ago

Same issue here, stopped working when upgrading to WP 5.7.x