Headless CMS support. Domain in API response

#442110
  • Resolved Dev
    Rank Math free

    Hi,

    We are developing a website for our client and using Headless WordPress setup. Our frontend (NextJS application) and backend (WordPress) are located on different domains, e.g. http://site.com and http://api.site.com respectively. Request to RankMath API successfully replies to request, but it returns the value with backend domain. For example

    <meta property="og:url" content="http://api.site.com/" />

    Is there a way in the plugin to set the domain of the frontend, so that API would return the response with frontend domains?

    Thank you!

    Mitya,
    Digital Developer
    Bond Creative Agency

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    No, the API will always respond with the domain of the WordPress installation as that is where the data is coming from.

    Don’t hesitate to get in touch if you have any other questions.

    ​​​​​​

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.