• Resolved gowthamprabhu

    (@gowthamprabhu)


    Hi.

    I’m trying to sent this /wp-json/jwt-auth/v1/token on postman.

    I have set config:
    .htaccess is set
    wp-config.php is set

    Params passing on postman username & password in ‘Body’ -> ‘Form Data’

    I’m getting this error:
    {
    “success”: false,
    “statusCode”: 403,
    “code”: “jwt_auth_no_auth_header”,
    “message”: “Authorization header not found.”,
    “data”: []
    }

    Can you help to fix it, please.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Bagus

    (@contactjavas)

    Hi @gowthamprabhu , how did you set the .htaccess? Try to put jwt-auth rules on top before WordPress rules.

    Best,
    Bagus

    Thread Starter gowthamprabhu

    (@gowthamprabhu)

    Hi,

    For your reference .htaccess code

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule ^(.*) – [E=HTTP_AUTHORIZATION:%1]
    SetEnvIf Authorization “(.*)” HTTP_AUTHORIZATION=$1
    </IfModule>

    # BEGIN WordPress
    # The directives (lines) between BEGIN WordPress and END WordPress are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress
    Options All -Indexes

    Thank you.

    Thread Starter gowthamprabhu

    (@gowthamprabhu)

    Hi,

    On the Apache server.

    • This reply was modified 5 years, 7 months ago by gowthamprabhu.
    Plugin Author Bagus

    (@contactjavas)

    Hi @gowthamprabhu , would you mind to join our Discord channel for faster communication? We may be able to check this issue together.

    Thanks,
    Bagus

    Plugin Author Bagus

    (@contactjavas)

    Hi @gowthamprabhu , have you solved the issue? Let me mark this as resolved.

Viewing 5 replies - 1 through 5 (of 5 total)

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