Iframe Data Will Not Load From One Subdomain, But Works Fine From Another Subdomain April 21, 2024 Post a Comment I'm trying to figure out why iframe will not load on a specific page. Code that I'm using: Solution 1: Same Origin Policy applies to:Protocol (ex. https://)Sub-domain (ex. https://frameloader)Domain (ex. https://frameloader.mywebsite.com)Port (ex. https://frameloader.mywebsite.com:80)All of the above must match in order to comply with Same Origin Policy. Fortunately there is a workaround for your circumstances. Add the following to both locations:document.domain = 'mywebsite.com'CopyRead Iframe cross domain JavaScript calls and The document.domain exception for details. Share Post a Comment for "Iframe Data Will Not Load From One Subdomain, But Works Fine From Another Subdomain"
Post a Comment for "Iframe Data Will Not Load From One Subdomain, But Works Fine From Another Subdomain"