title: asp net mvc login page doesn't work inside iframe
body: <p>I am working on a feature where our site is able to load another mvc site. 
  Basically I am using a Iframe with Id=aquaVetIframe where I put the url for my mvc site(setup of the src attribute for the iframe is done from codebehind). Everything is working fine in chrome. but at moment to test it using IE 10 the only thing what i can see in IE is the login page. 
  After sign in with the user the page return to the same login page. I could suppose that is related with the caching but i am not 100% sure.</p>
  
  <p>here some code:
  My aspx container:</p>
  
  <pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server"&gt;
  &lt;meta http-equiv="Cache-Control" content="max-age=0" /&gt;
  &lt;meta http-equiv="Pragma" content="no-cache" /&gt;
  &lt;meta http-equiv="Expires" content="-1" /&gt;
  &lt;style type="text/css"&gt; 
      html, body{height: 100%;}
  &lt;/style&gt;
  &lt;/asp:Content&gt;
  
  &lt;asp:Content ID="Content5" ContentPlaceHolderID="MainContent" runat="server"&gt;
    &lt;div style="height: 100%; width: 100%;"&gt;
        &lt;iframe id="aquaVetIframe" runat="server" allowfullscreen="true"  style="position: absolute;height: 100%; width: 100%;border:0px"&gt; &lt;/iframe&gt;  
      &lt;/div&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>Code behind:</p>
  
  <pre><code>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  
      Dim urlQueryString = Request.QueryString("urlId")
  
      aquaVetIframe.Attributes("src") = urlQueryString
  
  End Sub
  </code></pre>
  
  <p>At the top of my page I tried add the next tags, but with no luck:</p>
  
  <pre><code>&lt;meta http-equiv="Cache-Control" content="max-age=0" /&gt;
  &lt;meta http-equiv="Pragma" content="no-cache" /&gt;
  &lt;meta http-equiv="Expires" content="-1" /&gt;
  </code></pre>
  
  <p>Here an image of the http post requests using IE10 and chrome (browser where currently is working my app)
  <a href="http://postimg.org/image/iaifcljdz/" rel="nofollow noreferrer">http://postimg.org/image/iaifcljdz/</a>
  <img src="https://i.stack.imgur.com/63zmk.jpg" alt="enter image description here">
  <strong>UPDATE:</strong>
  Adding this line to my mvc application, cookies are allowed from IE and the application run fine while I executing the page directly in the browser (right click on run on IE browser in VS2013)</p>
  
  <pre><code>context.BeginRequest += (sender, args) =&gt; HttpContext.Current.Response.AddHeader("p3p", "CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");
  </code></pre>
  
  <p>The issue what i have now is that my mvc aplication is not executing when I run my application from the begining.. for some strange reason the js libraries from mvc app are not loading..
  see screenshot
  <img src="https://i.stack.imgur.com/uFX4M.png" alt="error comming from mvc app"></p>