How do you fix the "403 Forbidden Error" that occurs when placing local images on a website?

I locally host the site on my mac (all files are in the Sites folder on my computer (~ / Sites). I try to add an image to my site and I get 403 Forbidden Error :: "NetworkError: 403 Forbidden - http: / /172.28.15.5/~user/image.png "

Somebody knows

+3
source share
1 answer

Check the permissions of the file and the Sites folder. Make sure that the Sites folder has permission o + x (public input) and the image has permission o + r (public reading), because when you try to access it using a web browser, you are considered public.

+5
source

All Articles