Chrome瀏覽器離線安裝 Postman 5.X 報錯


下載和安裝請參考 博友文章http://www.cnblogs.com/wangfeng520/p/5892125.html

嘗試安裝此擴展程序時出現以下警告:
Ignored insecure CSP value "https://ssl.google-analytics.com/ga.js" in directive 'script-src'.

查詢一下可知,這是用於訪問統計的,應該沒什么大用。,可以考慮找到直接去掉引用。

自己嘗試找到的解決辦法:

找到解壓后的根目錄下的 manifest.json,打開找到sandbox節點
 "sandbox": {
      "pages": ["html/tester_sandbox.html", "snippet_sandbox.html"],
      "content_security_policy": "sandbox allow-scripts allow-popups; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://ssl.google-analytics.com/ga.js;"
    }
可以看到最后就是報錯的那個js,直接刪除鏈接接好了,改完之后如下所示
 "sandbox": {
      "pages": ["html/tester_sandbox.html", "snippet_sandbox.html"],
      "content_security_policy": "sandbox allow-scripts allow-popups; script-src 'self' 'unsafe-inline' 'unsafe-eval' "
    }

這時候在chrome里面刷新一下,可以看到已經不報錯了。

這個還需要登錄注冊,最近在用的ApiDebug也挺不錯的,國產的,開源免費,開源地址https://gitee.com/CrapApi/ApiDebug


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM