Timeline for WordPress REST endpoint not able to reach with jQuery
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 12, 2019 at 21:34 | vote | accept | xyz83242 | ||
Dec 12, 2019 at 20:32 | answer | added | Tom J Nowell♦ | timeline score: 0 | |
Dec 12, 2019 at 20:19 | comment | added | xyz83242 | Yes, as per the first sentence of my question when visited via browser this works perfectly well. What I really need to know why I am unable to access it with jQuery AJAX while it can be visited via browser with no issues. That's all. Thanks Tom | |
Dec 12, 2019 at 19:25 | comment | added | Tom J Nowell♦ |
Why does your URL have target = before it? Have you confirmed your endpoint is there by visiting it in your browser? It's extremely unusual that your endpoint encodes and outputs its own content, is there a reason you don't return the data from the function like the docs? Also where is the code that creates $myObj ? Is there more to your endpoint that's been removed to fit in this question?
|
|
Dec 12, 2019 at 19:01 | history | asked | xyz83242 | CC BY-SA 4.0 |