Update: this works for IE, but Chrome still throws this error. I am trying to create my own site that I own another site that I own. Here is the error message I get in the JS console in Chrome:
Multiple 'X-Frame-Options' headers with conflicting values ('AllowAll, SAMEORIGIN, AllowAll') encountered when loading 'http://subdomain.mysite.com:8080/Dir/'. Falling back to 'DENY'. Refused to display 'http://subdomain.mysite.com:8080/Dir/' in a frame because it set 'X-Frame-Options' to 'AllowAll, SAMEORIGIN, AllowAll'.
I searched for SAMEORIGIN wherever I install this ANYWHERE.
The main site is www.mysite.com and the other site is subdomain.mysite.com. Obviously, a policy of the same origin does not allow me to do this. So I set the X-Frame-Options header on my subdomain.mysite.com to "AllowAll". In the begin-request method, I added the following:
HttpContext.Current.Response.Headers.Remove("X-Frame-Options"); HttpContext.Current.Response.AddHeader("X-Frame-Options", "AllowAll"); HttpContext.Current.Response.AddHeader("Access-Control-Allow-Origin", "*");
page level I added the following:
<meta name="x-frame-options" content="allowall" />
In Javascript, I added:
<script type="text/javascript"> document.domain = "mysite.com"; </script>
I'm ending my attempts to try ... Thanks for your help.
source share