內容簡介
<html>
<p>這個外掛可以避免在 WordPress 使用 Docker 環境(如 wp-env)時發生迴圈請求錯誤。</p>
<ul>
<li>將對 localhost 的請求替換為 host.docker.internal,並且若是 https,則轉換為 http 並關閉 sslverify。</li>
<li>不需要設定,只需啟用此外掛。</li>
</ul>
</html>
<html>
<h3>問與答:</h3>
<ul>
<li>
<h4>這個外掛的作用是什麼?</h4>
<p>避免在 WordPress 使用 Docker 環境時發生迴圈請求錯誤。</p>
</li>
<li>
<h4>如何處理對 localhost 的請求?</h4>
<p>將其替換為 host.docker.internal。</p>
</li>
<li>
<h4>若原本是 https 請求會發生什麼變化?</h4>
<p>會被更改為 http 並關閉 sslverify。</p>
</li>
<li>
<h4>這個外掛是否需要進行設定?</h4>
<p>不需要,僅需啟用即可。</p>
</li>
</ul>
</html>
外掛標籤
開發者團隊
② 後台搜尋「localhost2host.docker.internal」→ 直接安裝(推薦)
原文外掛簡介
Prevents loopback request errors in WordPress environments using Docker such as wp-env.
Replace requests to localhost with host.docker.internal, and if https, change to http and turn off sslverify.
There are no settings. Just enable this plugin.
