detect whether framing is allowed