Validate the originUrl against the list of 'github-domains' from the config.
Refactoring my code to use a protected function to generate API Url.