minor tweak for allowed origins determination