Add CheckOrigin delegate