If the URL to the page is file:// it won’t work
file://
It has to be http://localhost/ (any port should work) or a proper URL.
http://localhost/