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 http://Website.com/wp-json/jwt-auth/v1/tokenor
curl -u Name http://Website.com/wp-json/jwt-auth/v1/tokenThe .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://ww.wp.xz.cn/plugins/jwt-authentication-for-wp-rest-api/
The topic ‘Error : Authorization header malformed’ is closed to new replies.