JSONP response add /**/ before the function name
-
Hi, I’m using WP4.0 (with a network enabled) and JSON REST API to create a JSONP webservice.
Great plugin, but I have a big problem to fix.
in the response, for example:
https://mydomain.xxx/wp-json/posts?type=myCustomPostType&_jsonp=CallbackName
The plugin add a /**/ before the response.
Response example:
/**/CallBackName([{"ID":32,"title":"Piadina n\u00b0 2","status":"publish","type":"carta_menu","author":{"ID":1,"username":"davide","name":"d","first_name":"","last_name":"","nickname":"davide","slug":"davide","URL":""," ...
How can I remove it?
Thanks for your support!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘JSONP response add /**/ before the function name’ is closed to new replies.