javascript - Forbidden You don't have permission to access this resource. Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.2.34 Server at localhost Port 80

one text

Solution:

I faced the same problem and this is what worked for me

  1. open your xammp file location
  2. copy the .html file to the htdocs folder
  3. then type localhost/

Source