Safari: kCFErrorDomainCFNetwork error 1 on local (HTML) files

safari

I keep a lot of local HTML files on my machine, including my home page. Whenever I first open Safari, and often when going to any local file, I will receive an error. Hitting refresh (or, for the home page, the home button again) fixes the problem… until the next time you try to go anywhere.

Usually opening a link in a new tab prevents this from occurring; opening a link in the same tab almost always sees the error.

I realize "wait for Apple to get around to fixing it" is a valid answer; I also realize "use a different browser" is a valid answer. I'm hoping, instead, for a setting change I can make, or HTML tag I can add to my metric badger-load of files, to prevent this error without swapping browsers or waiting for an update (since it's already been happening for quite some time).

The error:

Safari Can't Open the Page

Safari can't open the page. The error is "The operation couldn't be completed.

(kCFErrorDomainCFNetwork error 1.)" (kCFErrorDomainCFNetwork:1)

Some potentially useful information:

macOS Mojave Version 10.14.4 (On a desktop, if that matters.)

Safari Version 12.1 (14607.1.40.1.4)

Best Answer

I was having the same issue with my homepage which is stored locally on my mac. Putting the HTML files in the Applications folder seemed to solve the problem.

I know it's not the best solution but at least I don't get an error anymore when opening a new tab.

Related Question