0

when I try to apply coupon code in server its showing 403 forbidden error . But its working on local machine. below the error. please check it.

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
 <html><head>
     <title>403 Forbidden</title>
     </head><body>
     <h1>Forbidden</h1>
     <p>You don't have permission to access 
     /Amberly/rest/default/V1/carts/mine/coupons/AMBIBSBHTTP
      on this server.<br />
      </p>
      <p>Additionally, a 403 Forbidden
       error was encountered while trying to use an ErrorDocument to handle the request.</p>
  </body></html>

how can i solve this issue?.

  • which OS is running on your local and on the server? it could be because of permissions. Check these two things 1. Did you create rest user with proper permissions? 2. Is the error same with HTTP and HTTPS? – Kalyan Chakravarthi V Mar 7 '18 at 8:45
  • os ubuntu 14.04. how to create rest user?. how to give rest permission to all users. – Midlaj Mar 7 '18 at 8:53
1

This error caused by apache2 server configuration.

When I edit httpd.conf file with following code the error fixed. And its working fine.

<Directory "your directory here">
    Order allow,deny
    Allow from all
    # New directive needed in Apache 2.4.3: 
    Require all granted
</Directory>
  • in log file: ::::: AH01797: client denied by server configuration: /home/bbppco/mg.project.co/vendor/saveprofile --- i have same issue how i can fix that....... – prabhakaran7 Jun 12 at 5:08
  • Did you checked your httpd.conf file? – Midlaj Jun 13 at 7:04
  • how i can check – prabhakaran7 Jun 13 at 7:05
  • <Directory "your directory here"> in servers which type of path – prabhakaran7 Jun 13 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.