-3

I have a problem, when I try to set cookies in controller it is not works

  def test
    cookies["test"] = {

        :value => 'a yummy cookie',
        :expires => 1.year.from_now,
        :domain => 'domain.com'
    }
  end

But if I delete :domain => 'domain.com' It is set to my domain "localhost:3000", I neet set my cookies to another domain. Thank you.

AzBest
  • 67
  • 5

1 Answers1

-1

You cannot set cookies for another domain.