I am getting an error while trying to order as a guest in magento2.2.
You don't have permission to access /checkout/cart/add/uenc/aHR0cHM6Ly9wYXJhbWFuYW5kYXl1cnZlZGEuY29tLw,,/product/42/ on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."
I run following command to solve this problem
php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento setup:upgrade
php bin/magento setup:di:compile
But not able to find the solution for the issues.
Please help me to solve this problem.
Are you using Apache?
Have you the rewrite module enable? (I guess the answer will be yes)
Can you check if file permissions are correct?
Is the .htaccess file located at your store root path?