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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM