• Resolved suquidev

    (@suquidev)


    Hi!

    I’m in trouble with this.

    I read the topics about this with the same problem, but I cannot solve it.

    I’ve got last version of the pluggin.

    In my local server everything it’s fine, in my server test everything it’s fine, but in the final production server I’ve got this:

    {
    "code": "api_bearer_auth_not_logged_in",
    "message": "You are not logged in.",
    "data": {
    "status": 401
    }
    }

    Here it’s my .htaccess

    # BEGIN WordPress
    # Las directivas (líneas) entre ?BEGIN WordPress? y ?END WordPress? son
    # generadas dinámicamente y solo deberían ser modificadas mediante filtros de WordPress.
    # Cualquier cambio en las directivas que hay entre esos marcadores serán sobrescritas.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteCond %{HTTP:Authorization} ^(.*)
    # Don’t know why, but some need the line below instead of the RewriteRule line
    # SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
    RewriteRule ^(.*) – [E=HTTP_AUTHORIZATION:%1]
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    I’m using WordPress as a Headless, but the thing is that in Postman I cannot either, same message.

    ?Is the problem with the production server? Or should I check something else?

    Thanks a lot

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.