ensure proper redirect/mode cookies are set in pinning spec