Forum Discussion
How to always allow specific local protocol
It looks like there is now a policy to enable the checkbox again:
https://docs.microsoft.com/en-us/DeployEdge/microsoft-edge-policies#externalprotocoldialogshowalwaysopencheckbox
- jagrockDec 17, 2019Copper Contributor
AndrewSAIF - thanks! This worked. Now to figure out where it's storing this so I can set our apps (WebEx, Teams, etc) to do this automatically for our users.
- AndrewSAIFDec 17, 2019Iron Contributor
The handler preference is stored in %localappdata%\Microsoft\Edge[version]\User Data\Default [or profile name]\Preferences.
The two ways to prepopulate it I know of are:- Add a master_preferences file to the installation directory of Edge for it to load on first run
https://support.google.com/chrome/a/answer/187948?hl=en - Use PowerShell to add this to the end of the preferences file before the last curly brace
,"protocol_handler":{"excluded_schemes":{"yourhandlername":false}}
Unfortunately, this preference is undone whenever the user clears their browser cache, so I think I'm going to opt to just have folks check the box.
- 07_19Dec 19, 2019Iron Contributor
Thanks a lot AndrewSAIF. I didn't have to use a master_preferences or powershell to edit Preferences. I simply right-click it and choose to open it with my text editor "vscode"
Once open, Preferences looks like a json file, so you should be able to open it with any text editor. But your operating system doesn't know that because the extension is removed.
This work for me (to allow zotero and vscode protocols):
- close Edge
- go to %localappdata%\Microsoft\Edge[version]\User Data\Default [or profile name]\Preferences.
- Right-click Preference and choose a text editor
- scroll down to the very end of the text
- remove the last
}
- add (notice the first comma, and no need to add :// for the protocols
,"protocol_handler":{"excluded_schemes":{"zotero":false, "vscode":false}}}
edit: once you edit have edited Preferences and open Edge, the position of the protocol_handler will automatically be move just beneath "password_hash_data_list" so you won't see it anymore right a the very end of the text. So after the first edit, if you need to add more protocols, you will have to look for "protocol_handler".
- Add a master_preferences file to the installation directory of Edge for it to load on first run