title: How to get Google Chrome to open a custom URL scheme handler?
body: <p>I have a html test page with the link:</p>
  
  <pre><code>&lt;a href="customprotocol:information-from-browser"&gt;Link.&lt;/a&gt;
  </code></pre>
  
  <p>If I open this in Safari and click on the link, the handling app (a custom app) opens correctly. </p>
  
  <p>But when I open this page in Google Chrome and click on the link, <strong>the app does not open</strong>.</p>
  
  <p>The clicked link fires a GET request, but it's status is cancelled. And the whole request is shown in red in the Network Inspector.</p>
  
  <p><a href="https://i.stack.imgur.com/kjwH3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kjwH3.png" alt="chrome network tab"></a></p>
  
  <p>I thought maybe Chrome does this for security reasons, and blocks unregistered custom URL schemes by default. To get around this, I added a bit of javascript to the html page (from <a href="https://stackoverflow.com/questions/2330545/is-it-possible-to-open-custom-url-scheme-with-google-chrome">this question</a>):</p>
  
  <pre><code>window.location.assign("customprotocol:");
  </code></pre>
  
  <p>which pops up a dialog asking if the user wants to associate customprotocol: with the app. </p>
  
  <p>Even after pressing OK and thus setting the customprotocol: handler recognized by chrome, the link still does not launch the app. It remains a cancelled request.</p>
  
  <p><strong>Why is this? How do I get this to work in Google Chrome?</strong></p>
  
  <hr>
  
  <p>Note 1: AFAIK, all my software are updated to the latest versions.</p>
  
  <p>Note 2: The cancelled request has no response and preview information. Under timing, the request shows as stalled.</p>