• Resolved vladanradmilovic

    (@vladanradmilovic)


    Hello,

    We are experiencing issues accessing User Information after successfully performing Authorization and retrieving a token.

    Curl request:

    curl -H “Authorization:Bearer < 1c666593bd9fb6f1e0fea583d7f4f101 >” -X GET https://oursite.com/wp-json/moserv
    er/resource

    Response:

    {“error”:”missing_access_token”,”error_description”:”No Access Token provided”}

    Can you advise, please.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author miniOrange

    (@cyberlord92)

    Hi @vladanradmilovic,

    Thanks for reaching out to us.

    It looks like your Authorization header is removed by your server.
    Could you please let me know which PHP server you are using?

    However, If you are using an Apache server please add the below rules in the htaccess file.

    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule .* – [e=HTTP_AUTHORIZATION:%1]

    If you are using the NGINX server, please add the below rules in the conf file.

    add_header Access-Control-Allow-Headers “Authorization”;

    Let us know if you still face the same issue.

    Thanks
    Team miniOrange

    (just ignore this one, sorry)

    • This reply was modified 3 years, 7 months ago by igorneumann.
    • This reply was modified 3 years, 7 months ago by igorneumann.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No Access Token Provided’ is closed to new replies.