• Hi,

    It seems impossible to use the Connect button from the Jetpack admin page when the admin is on a different domain than the front end.

    This happens when on a multisite with Domain Mapping and the option to keep admin pages on the original domain activated, but I suppose it could also be possible with a single site setup where home and siteurl options are using different domains.

    In browser console, from the Jetpack admin page on the multisite subdomain, I get

    
    Fetch API cannot load http://_MAPPED_DOMAIN_/wp-json/jetpack/v4/connection/url. Request header field x-wp-nonce is not allowed by Access-Control-Allow-Headers in preflight response.
    

    Connecting the site from the WordPress.com My Sites interface works without issues.

    Similar errors show when trying to de/activate modules, blocking requests by the Chrome browser. When the admin domain is on HTTPS, the errors change a bit but the result is the same.

    Is there any way to force Jetpack to pass all requests (API and files) over the admin domain?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Thanks for the report!

    Could you let me know what plugin you use to map domains on your Multisite network?

    If you use the WordPress MU Domain Mapping plugin, could you post a screenshot of your domain mapping options, so I can try to reproduce the issue?

    Thanks!

    Thread Starter Rolf Allard van Hagen

    (@ravanh)

    Hi Jeremy, no it’s the Domain Mapping plugin by WPMU DEV. So I tried to reproduce with Donncha’s plugin but with that (tried many settings) it seems to all work smoothly.

    I’ll have to take it up with the WPMU DEV people.

    Thanks for your feedback! 🙂

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Excellent. Let me know how it goes!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Admin on different domain (multisite + domainmapping) issues’ is closed to new replies.