Impossible de définir le drapeau httponly sur false lors de la définition d'un cookie

I want to set a cookie from session controller with its httponly flag set to false here is what i did

cookies[:my_cookie_name] = { value: "hello", httponly: false }

but it sets the httponly value to true. can anyone please help me to configure that? Thanks