title: Redirect with cookies
body: <p>Is it possible to redirect to other domain with cookies? I tried followong.</p>
  
  <pre><code>def test_redirect
    response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
    response.headers['Pragma'] = 'no-cache'
    response.headers['Expires'] = '0'
  
    request.cookies[:foo] = {value: 'Viktor is here!', domain: '.google.com'}
  
    redirect_to 'http://google.com/'
  end
  </code></pre>
  
  <p>But it didn't work. My cookie doesn't appear.</p>
  
  <p><a href="https://i.stack.imgur.com/UC93o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UC93o.png" alt="enter image description here"></a></p>