Cannot set httponly flag to false when setting a 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