localhost2host.docker.internal

By enomoto celtislab

★ 5.0/5 (1 ratings)0+ active installationsVersion 0.4.0

For Docker wp development: Replace loopback requests to localhost with host.docker.internal

Description

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.

Installation

  1. Upload the localhost2host-docker-internal folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress