Hoppscotch 使用;解決跨站請求問題;Hoppscotch 無法發送請求,無法到達API端點。請檢查網絡連接並重試;


今天在使用 Hoppscotch 進行調試restapi; Hoppscotch 是開源的postman的替代品,使用體驗比較相同;今天簡要記錄一下,進行備忘;

項目地址:https://github.com/hoppscotch/hoppscotch

開箱即用地址:https://hoppscotch.io/

注意:為了解決跨站請求問題,需要安裝瀏覽器插件:Chrome Chrome

使用界面:

單例部署:我們可以使用 docker 啟用自己獨立的單例使用

docker run --rm -d --name hoppscotch -p 3000:3000 hoppscotch/hoppscotch:latest

注意在使用單例部署的時候,我們需要在瀏覽器插件添加,orgin地址,以支持跨站請求;If you want to use the extension anywhere outside the official Hoppscotch instance you may want to add the domain to the extension's origin list. You can access the origin list by clicking on the extension icon on your browser toolbar. ;否則會出現:Hoppscotch 無法發送請求,無法到達API端點。請檢查網絡連接並重試 的問題;

添加的地址,就是我們部署的位置;之后重新刷新界面,即可以順利使用了;

保持更新;


免責聲明!

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



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