Added option to enable sending cookies via config