update to new interface for detecting cross-origin-ness