Chrome报错提示Unchecked runtime.lastError: The message port closed before a response was received.

经过查询,此错误是Chrome扩展插件引起的。由于Chrome修改了API接口,原来的请求被拦截。(Chrome 73 onwards disallows cross-origin requests in content scripts. (Code in content scripts will now be subjected to the same CORS rules as the page they are running in))

已知会引起这个问题的插件

  • 1Password
  • Pinterest
参考资料:https://stackoverflow.com/questions/53919591/chrome-angular-unchecked-runtime-lasterror-the-message-port-closed-before-a-res
posted @ 2019-05-13 16:44  zhuxiaoxi  阅读(5853)  评论(0编辑  收藏  举报