Error : Authorization header malformed
-
Hello,
I have this message when I try to get the token
{"code":"jwt_auth_bad_auth_header","message":"Authorization header malformed.","data":{"status":403}}
To obtain this result that I type this command :
curl -u Name:Password https://Website.com/wp-json/jwt-auth/v1/token
or
curl -u Name https://Website.com/wp-json/jwt-auth/v1/token
The .htaccess and wp-config.php file are modified :
RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
and
define('JWT_AUTH_SECRET_KEY', 'xxxxxx'); define('JWT_AUTH_CORS_ENABLE', true);
May be my command line is false?
Thank you
https://www.ads-software.com/plugins/jwt-authentication-for-wp-rest-api/
- The topic ‘Error : Authorization header malformed’ is closed to new replies.