<p>Whenever I have an issue with live previews between sites, I have found it to be an issue with my security headers and/or <code>.htaccess</code> file.  Live preview uses an iframe, so if your site blocks iframes via security headers, then you obviously would not see its contents.</p>
<p>Check the console output via dev tools in your browser, and also check the logs under <code>storage/logs/</code> - it will tell you what is getting blocked and at which point.</p>

CC BY-SA 4.0
2020-12-09T07:01:16.200Z
2020-12-09T07:01:16.200Z
Tammy Shipps
<p>Are those the fields on the non-visible entries translatable by site? It's the most common problem, not setting up some of the fields or subfield as translatable by site.</p>

CC BY-SA 4.0
2019-02-04T17:21:32.763Z
No translation they both use same language. Two different domains.
The entry without preview button - its title has a translation symbol. Which is weird.
joomkit
CC BY-SA 4.0
2019-02-04T17:51:34.600Z
Are the sections enabled for both sites? If you go to the part of the section where the URI is defined, it should be active on the secondary site. 
What type of entries are they?
Tyrannogina regina
CC BY-SA 4.0
2019-02-05T12:41:00.780Z
That doesn't make sense to enable because then admin can see site B entries in Site A entries view. Tried it to but still no preview on entries
joomkit
CC BY-SA 4.0
2019-02-05T14:16:27.607Z
The only other times I had that happening is when my section was not pointing to an existing template (for example changing a channel to single removes previous URI/template info but the entry still exists). It's kinda difficult to know without seeing the project.
Tyrannogina regina
CC BY-SA 4.0
2019-02-04T16:48:16.967Z
2019-02-04T16:48:16.967Z
Tyrannogina regina
<p>I am running sta-A and site-b on same installation.
I have cookie set for domain and have htaccess with CORS origin set to allow *, and also updated the nginx config to allow CORs. I know this last one works as font-awesome was blocked and is now working once i had updated the local nginx conf file.</p>

<p>The second domain only has live preview available on its home page. Any other entries created for the second domain have the link icon in the entries list in CP but when editing have no live preview option.</p>

<p>I thought 3.1.7 tokenized this?</p>

CC BY-SA 4.0
2019-04-23T14:38:47.663Z
Did you solve this in the end? I'm still having trouble with Live Preview and all SO answers just say it's fixed in 3.1+
mijewe
<multi-site><live-preview>
Craft 3.1.7 live preview multi-site only works on home page
# Craft 3.1.7 live preview multi-site only works on home page

(Asked by: username_0 on 2019-02-04)

I am running sta-A and site-b on same installation.
I have cookie set for domain and have htaccess with CORS origin set to allow \*, and also updated the nginx config to allow CORs. I know this last one works as font-awesome was blocked and is now working once i had updated the local nginx conf file.

The second domain only has live preview available on its home page. Any other entries created for the second domain have the link icon in the entries list in CP but when editing have no live preview option.

I thought 3.1.7 tokenized this?

**Tags:** multi-site, live-preview

> **Comments:**
> **username_1**: Did you solve this in the end? I'm still having trouble with Live Preview and all SO answers just say it's fixed in 3.1+  

---

## 2 answers

### Answer by username_2 on 2020-12-09. Score: 1

Whenever I have an issue with live previews between sites, I have found it to be an issue with my security headers and/or `.htaccess` file. Live preview uses an iframe, so if your site blocks iframes via security headers, then you obviously would not see its contents.

Check the console output via dev tools in your browser, and also check the logs under `storage/logs/` - it will tell you what is getting blocked and at which point.


---

### Answer by username_3 on 2019-02-04. Score: 1

Are those the fields on the non-visible entries translatable by site? It's the most common problem, not setting up some of the fields or subfield as translatable by site.

> **Comments:**
> **username_0**: No translation they both use same language. Two different domains. The entry without preview button - its title has a translation symbol. Which is weird.  
> **username_3**: Are the sections enabled for both sites? If you go to the part of the section where the URI is defined, it should be active on the secondary site.  What type of entries are they?  
> **username_0**: That doesn't make sense to enable because then admin can see site B entries in Site A entries view. Tried it to but still no preview on entries  
> **username_3**: The only other times I had that happening is when my section was not pointing to an existing template (for example changing a channel to single removes previous URI/template info but the entry still exists). It's kinda difficult to know without seeing the project.  

---

