diff --git a/CRM/Utils/Check/Component/Env.php b/CRM/Utils/Check/Component/Env.php index 294547dac590..5492bc45e715 100644 --- a/CRM/Utils/Check/Component/Env.php +++ b/CRM/Utils/Check/Component/Env.php @@ -898,6 +898,11 @@ public function checkResourceUrl() { if (CRM_Core_Config::singleton()->userFramework == 'UnitTests') { return $messages; } + // CRM-21629 Set User Agent to avoid being blocked by filters + stream_context_set_default(array( + 'http' => array('user_agent' => 'CiviCRM'), + )); + // Does arrow.png exist where we expect it? $arrowUrl = CRM_Core_Config::singleton()->userFrameworkResourceURL . 'packages/jquery/css/images/arrow.png'; $headers = get_headers($arrowUrl);