Loopback Requests

  • | 157 points

    I have a site running Koken, part of the core platform code performs a request to it's self:

    curl_setopt($curl, CURLOPT_URL, self::$protocol . '://' . $_SERVER['HTTP_HOST'] . self::$location['real_root_folder'] . '/api.php?' . $url);

    In Laragon this fails with the error: The theme is not able to make contact with your Koken installation. Contact your host to see if they are blocking loopback connections. Essentially the request doesn't return anything.

    I'm guessing it's something to do with the server being unable to resolve the host? e.g. http://mysite.dev

    Thanks in advance for any help.

  • administrators
    | 131291 points

    @peterhough : I'm not sure what Koken was doing, but I guess:
    For some reasons, Koken tried to resolve mysite.dev from their side and failed.
    I suggest you to use Ngrok url (in Menu > ngrok > mysite.dev) to make sure.

Log in to reply

Looks like your connection to Laragon was lost, please wait while we try to reconnect.