【问题标题】:Is it possible to open a Chrome External Protocol Request through a Chrome Extention Content Script?是否可以通过 Chrome 扩展内容脚本打开 Chrome 外部协议请求?
【发布时间】:2016-09-09 04:16:02
【问题描述】:

我一直对如何使用外部协议请求感到困惑。

我的外部请求 url 是“playUpun://launch:5122”,我正在尝试从网页上运行的内容脚本中调用它,并不断收到有关

的错误

jquery.js:4 XMLHttpRequest 无法加载 playUpun://launch:5122。跨源请求仅支持协议方案:http、data、chrome、chrome-extension、https、chrome-extension-resource。

【问题讨论】:

    标签: javascript jquery google-chrome google-chrome-extension


    【解决方案1】:

    通过External protocol request找到解决方案

    必须使用<a href=""> div 标志。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-10-02
      • 2014-03-04
      • 2011-09-17
      • 2011-11-02
      • 2014-04-14
      • 2011-04-07
      • 1970-01-01
      • 2011-10-03
      相关资源
      最近更新 更多