Cleaning up some the allow-origin filter