I have set 777 permissions for pub/
and var/
directories.
I have run php bin/magento setup:upgrade
.
A 403 error is displayed when accessing any page on the website with the following message:
Failed to load resource: the server responded with a status of 403 (Forbidden)