make_result( array( 'id' => 'cors_wildcard', 'title' => __( 'Wildcard CORS origin in .htaccess', 'aipatch-security-scanner' ), 'severity' => AIPSC_Audit_Check_Result::SEVERITY_MEDIUM, 'description' => __( '.htaccess sets Access-Control-Allow-Origin: * which allows any domain to make cross-origin requests.', 'aipatch-security-scanner' ), 'why_it_matters' => __( 'A wildcard CORS policy allows any website to send authenticated requests if credentials are also allowed.', 'aipatch-security-scanner' ), 'recommendation' => __( 'Restrict CORS origin to specific trusted domains.', 'aipatch-security-scanner' ), 'evidence' => 'Access-Control-Allow-Origin: * found in .htaccess', ) ) ); } } return array( $this->make_result( array( 'id' => 'cors_config', 'title' => $this->get_title(), 'severity' => AIPSC_Audit_Check_Result::SEVERITY_INFO, 'status' => AIPSC_Audit_Check_Result::STATUS_PASS, 'description' => __( 'No risky CORS configuration detected in .htaccess.', 'aipatch-security-scanner' ), ) ) ); } }