There was a problem loading the comments.

Issues connecting to outside services and APIs

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
  • 14 November 2020 7:02 AM

Are you experiencing errors when connecting to outside services and APIs from your WordPress sites hosted on LaunchCDN?


Eg: cURL error 56: Proxy CONNECT aborted

It may be caused by the proxy service that we use to mask connections from your site to the rest of the internet.

The easiest way to fix this is to add the domain to the whitelist in WordPress.

Simply edit the wp-config.php file and change the line:

define('WP_PROXY_BYPASS_HOSTS', 'localhost, *.wordpress.org, *.youtube.com, *.wordfence.com');

You will need to add the domain name that the plugin or theme is trying to connect to the bypass list. Sometimes you can get this from an error message, other times you may need to contact the theme or plugin developer.

For example, if the plugin was having issues connecting to api.supportexample.com, then you would modify that line to include the domain *.supportexample.com, as per the example below:

define('WP_PROXY_BYPASS_HOSTS', 'localhost, *.wordpress.org, *.youtube.com, *.wordfence.com, *.supportexample.com');

Once this change has been saved, that site will be able to connect directly to that site, without going via the proxy service.

Share via
Did you find this article useful?  

Related Articles


Comments

Add Comment

Replying to  

Captcha
© LaunchCDN