Hi Everyone,
I was trying to use REST API on a custom development project (non-WP), the API was giving proper JSON formatted data in Dev build (localhost), but after putting it to production build on live server, it started giving the following data format:
Can anyone please help in understanding the error and how to solve it ?
@Moderating
I was trying to use REST API on a custom development project (non-WP), the API was giving proper JSON formatted data in Dev build (localhost), but after putting it to production build on live server, it started giving the following data format:
Code:
{
"code": 200,
"data": "<html lang="en-US"><title>Just a moment...</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><meta name="robots" content="noindex,nofollow"><meta name="viewport" content="width=device-width,initial-scale=1"><style>*{box-sizing:border-box;margin:0;padding:0}html{line-height:1.15;-webkit-text-size-adjust:100%;color:#313131}button,html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,"
Can anyone please help in understanding the error and how to solve it ?
@Moderating