title: How do I access a Silverlight XAP file across a domain?
body: <p>I'm trying to add my Silverlight application that lives on one subdomain to a web page in another subdomain. For some reason this just plain isn't working ... my Silverlight application is loaded as such in a page on <a href="http://subA.domain.com/somepage.html" rel="noreferrer">http://subA.domain.com/somepage.html</a>:</p>
  
  <pre><code>&lt;div id="silverlightControlHost"&gt;
      &lt;object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
          width="800px" height="600px"&gt;
          &lt;param name="source" value="http://subB.domain.com/SilverlightApp.xap" /&gt;
          &lt;param name="onerror" value="onSilverlightError" /&gt;
          &lt;param name="background" value="white" /&gt;
          &lt;param name="minRuntimeVersion" value="2.0.31005.0" /&gt;
          &lt;param name="autoUpgrade" value="true" /&gt;
          &lt;param name="enableHtmlAccess" value="true" /&gt;
          &lt;a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"&gt;
              &lt;img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight"
                  style="border-style: none" /&gt;
          &lt;/a&gt;
      &lt;/object&gt;
      &lt;iframe style='visibility: hidden; height: 0; width: 0; border: 0px'&gt;&lt;/iframe&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>If I move SilverlightApp.xap to subA.domain.com, it loads perfectly. What steps are needed to access a XAP file across domains?? I've been scraping the net trying to figure this out and seem to be getting nowhere.</p>
  
  <p>Thanks!!</p>