condtional origin check