Forum Discussion
How to always allow specific local protocol
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.
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 18, 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".
- jagrockDec 20, 2019Copper Contributor
07_19 Yes, I had tried this prior to posting here and it didn't work. Maybe it will now since the popup was added in.
Is this persistent or does the end user clearing cache/cookies, resetting settings, etc clear it out?- 07_19Mar 09, 2020Iron Contributor
Since the new update (I have Version 82.0.439.1 (Official build) dev (64-bit) ), this solution doesn't work anymore.
I checked my Preferences file in AppData\Local\Microsoft\Edge Dev\User Data\Default and the exclusion rule is still there ("protocol_handler":{"excluded_schemes":{"vscode":false,"zotero":false}} ) , but each time I open one of the specified protocol, I am asked to confirm that I want to open it.
How to fix this?
- AndrewSAIFDec 19, 2019Iron Contributor
You're correct, you can manually edit the file with a text editor and achieve the same result. It looked like jagrock was trying to configure this on multiple machines at once though, which is why I suggested those methods.