NTFY-88 Added some logging for origin checking errors
NTFY-88 Corrected origin validation in the case of origins with ports