Loading...
Loading...
HTTP 403 ForbiddenA 403 Forbidden response means the server understood your request but refuses to authorize it. Unlike 401 (Unauthorized), re-authenticating won't help — you simply don't have permission to access the resource.
Web server files typically need 644 permissions and directories need 755.
# Fix file permissions
chmod 644 /var/www/html/index.html
# Fix directory permissions
chmod 755 /var/www/html/
# Fix ownership
chown -R www-data:www-data /var/www/html/Add a bucket policy that allows public read access for static hosting.
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::your-bucket-name/*"
}]
}Verify the API key has the required permissions for the endpoint you are calling.