title: Why my Rails login fails authentication when running from within an iframe?
body: <p>I am trying to integrate my Rails application within another application using the "iframe" technique. </p>
  
  <p>The hosting application has an iframe like that:</p>
  
  <pre><code>&lt;iframe src="http://10.0.0.106:3000/" width="800" height="500"&gt;
  &lt;/iframe&gt;
  </code></pre>
  
  <p>This frame retrieves and displays the login page, which is ok. But when I type in username and password to login, it seems that authentication fails and I am prompted again for login. Note that no normal "Wrong username/password" message appears (as it is done when I give wrong username of password). The login form is displayed as if it were the first time I visit it.</p>
  
  <p>Any clue?</p>