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