• Resolved Fatima85

    (@fatima85)


    Hi
    I have WP multi vendor website which is connected to CDN, my site have an app which is connected using WP Rest api, my site’s images URL is CDN url when I opened my website from browser, but when my app call rest api to get the products, their images URLs is still refer to my read domain url not CDN URL.
    I aske my hosting server support, they old me follows:
    No, everything is working via API results fetch with your proper domain, I hope it is not possible to fetch results with CDN URL using API further you can contact woo-commerce support in this regard they better assist you.
    so would you plz help me?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Fatima85

    (@fatima85)

    Hi
    Would you please reply?

    Hey @fatima85,

    If I understand correctly, you’re saying that viewing the front end of the site, the images are loaded via the CDN. However, the image URLs included in the REST API responses aren’t. Those are served using the regular site URL.

    It sounds like the function that replaces the image URLs is not interacting with the REST API. The CDN is not something that is part of the WooCommerce core. You would want to check with the developer of the CDN integration and see if they can make that change for you.

    Cheers

    Hi @fatima85,

    It’s been a while since we heard from you, so I’m marking this thread resolved. Hopefully, you’ve been able to resolve this, but if you haven’t, please open up a new topic and we’ll be happy to help out.

    Take care

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CDN WP REST API’ is closed to new replies.