2

For production site, the backend url is like - 'www.abc-prod.com' While the actual live site url is - 'www.xyz.com'

When opening live preview for an entry, page never loads. Instead '301 Moved Permanently' is the status of response.

Response Headers

I have enabled CORS by adding following headers in response-

Access-Control-Allow-Origin: https://www.abc-prod.com
Access-Control-Allow-Headers: origin, x-requested-with, content-type
Access-Control-Allow-Methods: PUT, GET, POST, DELETE, OPTIONS
Access-Control-Allow-Credentials: true

Still getting blank page for live review. What exactly I am missing?

Amey Dahale
  • 133
  • 4

1 Answers1

3

Live Preview across different root domains is currently not possible in Craft. See here for more info: https://craftcms.stackexchange.com/a/14966/57

You can use it across different subdomains that share the same root domain, though: https://craftcms.com/support/cross-domain-live-preview

Brad Bell
  • 67,440
  • 6
  • 73
  • 143