If restarting the browser does not resolve the issue, try the following solutions:
1. Temporarily turn off Chrome’s security settings: Chrome may block the loading of an image if it detects malicious elements. However, if you are sure that the resource is safe, you can disable the security settings temporarily and then turn them back on after loading the file.
2. Change DNS settings: If your computer is dynamically switching DNS, Chrome may block it due to security concerns. You can use Google DNS servers to resolve this error.
3. Clear DNS host cache: Chrome has a built-in DNS cache server that may load a previous IP address if the developer of the website has changed it. Clearing the host cache can resolve this error.
4. Install the Web Server extension for Chrome: This extension runs offline and serves files and webpages to the network from a local folder. Setting up an HTTP server can resolve the error.
5. Clear Chrome’s cache and browsing data: If none of the above solutions work, clearing Chrome’s cache and browsing data can resolve the issue.
To open a local file in Chrome, open a new tab and press Ctrl + O. Then navigate to the location of the file and open it.
By following these solutions, you should be able to resolve the error of Chrome not being allowed to load local resources.