Previously, the source code included Moodle's core security configurations to facilitate automatic provisioning of port and URL blocking/allowing. However, adhering to Moodle standards, this practice is not permissible. Thus, exploring alternative methods to clear blocked URLs and ports for testing purposes:
if (strtolower(getenv('MOODLE_DISABLE_CURL_SECURITY')) === 'true') {
set_config('curlsecurityblockedhosts', '');
set_config('curlsecurityallowedport', '');
}
Description
Previously, the source code included Moodle's core security configurations to facilitate automatic provisioning of port and URL blocking/allowing. However, adhering to Moodle standards, this practice is not permissible. Thus, exploring alternative methods to clear blocked URLs and ports for testing purposes:
Related issue