<p><strong>Update</strong></p>

<p>This has been implemented for the upcoming Craft 3.1 release.</p>

<hr>

<p>Currently Live Preview will only work across sub-domains (i.e. site1.domain.com and site2.domain.com), not completely different domains (site1.com and site2.com) 
 Here's a guide on how you'd set that up: <a href="https://craftcms.com/guides/using-live-preview-across-multiple-subdomains" rel="nofollow noreferrer">https://craftcms.com/guides/using-live-preview-across-multiple-subdomains</a></p>

<p>In order for it to work across completely different domains, <a href="https://github.com/craftcms/cms/issues/1521" rel="nofollow noreferrer">https://github.com/craftcms/cms/issues/1521</a> will need to be implemented.</p>

CC BY-SA 4.0
2019-04-11T12:42:31.393Z
I am running Craft 3.1.18 and unable to use Live Preview on a multi Site. Admin url: domain.com/admin
Site A: domain.com - working live preview
Site B: domain.in - Error: Access to XMLHttpRequest at 'https://www.domain.in/?token=sv4HhcvPB8XScTzDXY-pJn-wboiyLR9T' from origin 'https://www.domain.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values 'https://www.domain.com, *', but only one is allowed.
Mark
CC BY-SA 4.0
2019-06-03T15:48:06.880Z
I'm having the same issue. Were you able to sort this?
mijewe
CC BY-SA 4.0
2018-10-22T17:37:00.817Z
2018-11-22T00:04:41.507Z
2018-11-22T00:04:41.507Z
Brad Bell
<p>I have updated to craft 3.1.7
I can only see live preview on homepage of add on domain. Other entries do not have live preview available</p>

CC BY-SA 4.0
2019-02-04T16:00:21.063Z
2019-02-04T16:00:21.063Z
joomkit
<p>In the multi-site Live Preview in admin panel show error in the console.</p>

<blockquote>
  <p>Failed to load <a href="http://www.example.local/test" rel="nofollow noreferrer">http://www.example.local/test</a>: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin '<a href="http://www.example.test" rel="nofollow noreferrer">http://www.example.test</a>' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.</p>
</blockquote>

<craft3><htaccess>
Multi-site Live Preview not working in Craft 3
# Multi-site Live Preview not working in Craft 3

(Asked by: username_0 on 2018-10-22)

In the multi-site Live Preview in admin panel show error in the console.

> Failed to load <http://www.example.local/test>: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '\*' when the request's credentials mode is 'include'. Origin '<http://www.example.test>' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

**Tags:** craft3, htaccess


---

## 2 answers

### Answer by username_1 on 2018-10-22. Score: 1

**Update**

This has been implemented for the upcoming Craft 3.1 release.

---

Currently Live Preview will only work across sub-domains (i.e. site1.domain.com and site2.domain.com), not completely different domains (site1.com and site2.com)
Here's a guide on how you'd set that up: <https://craftcms.com/guides/using-live-preview-across-multiple-subdomains>

In order for it to work across completely different domains, <https://github.com/craftcms/cms/issues/1521> will need to be implemented.

> **Comments:**
> **username_2**: I am running Craft 3.1.18 and unable to use Live Preview on a multi Site. Admin url: domain.com/admin Site A: domain.com - working live preview Site B: domain.in - Error: Access to XMLHttpRequest at 'https://www.domain.in/?token=sv4HhcvPB8XScTzDXY-pJn-wboiyLR9T' from origin 'https://www.domain.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values 'https://www.domain.com, *', but only one is allowed.  
> **username_3**: I'm having the same issue. Were you able to sort this?  

---

### Answer by username_4 on 2019-02-04. Score: 0

I have updated to craft 3.1.7
I can only see live preview on homepage of add on domain. Other entries do not have live preview available


---

