Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The host '...' was not found in the list of allowed hosts. Do you want to open it anyway?

Since updating to Visual Studio Code v. 1.78.2 this warning has been popping up. It is appearing because the folder I am working out of is using a UNC path. I rely on this path.

The VS help page states:

configure the host to be allowed via the security.allowedUNCHosts setting (for example add server-a when you open a path such as \server-a\path)

Where is this setting?

like image 589
Pfalbaum Avatar asked Sep 02 '25 03:09

Pfalbaum


1 Answers

Go to Settings Ctrl + , and search for 'allowedUNCHosts'. You'll find it under the Security section.

Link: vscode://settings/security.allowedUNCHosts

Note: "a restart is required when changing this setting"

a screenshot of vs code settings specifically the security section and the allowed UNCHosts

like image 114
Sean O Avatar answered Sep 04 '25 17:09

Sean O



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!