Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Api Access Issue Rate Topic   - - - - -

 
  • e55388
  • Member
  • Trial users
  • Join Date: 09-Mar 15
  • 29 posts

Posted 29 September 2017 - 06:30 AM #1

Hello,

 

while accessing API in postman it shows

 

{
    "message": "Unauthorized",
    "status": 401
}
I entered API key and email also in basic auth
 
This happens after transferring server,
 
Any one know what is this issue in server??


 
  • e55388
  • Member
  • Trial users
  • Join Date: 09-Mar 15
  • 29 posts

Posted 03 October 2017 - 05:25 AM #2

Now its resolved, 

 

Solution : 

 

By default, unauthorized users can’t access the API at all.

To allow API access for unauthorized users, edit the config.local.php file in the root directory of your store: change 'api_allow_customer' => false, to 'api_allow_customer' => true,.