1

I'm on Craft 3.1.17.2

My multisite setup is using different domains.

If I'm on a.com, I can Live Preview everything on b.com fine, except the homepage.

I get the error Access to XMLHttpRequest at 'b.com' from origin 'a.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

If I add Access-Control-Allow-Origin * to my Nginx config, none of the pages work and it complains about a duplicate value of (a.com, *).

Any ideas? Other questions I've browsed all suggest this has been fixed in Craft 3.1, and none of the docs indicate the I need to do anything to get this to work.

  • Did you solve this? – Mark Sep 20 '19 at 12:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.