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))chrome

已知會引發這個問題的插件插件

  • 1Password
  • Pinterest
參考資料:https://stackoverflow.com/questions/53919591/chrome-angular-unchecked-runtime-lasterror-the-message-port-closed-before-a-res
相關文章
相關標籤/搜索