public function allow_unsecure_urls_on_localhost($request) { if (GWPerks::is_local()) { $request['reject_unsafe_urls'] = false; } return $request; }