How do I return an xml http response from my worker?
I have a Worker that is Fetching a JSON response from Url.
This is then transformed to XML using a function.
I need to return the XML in the main response but do not know how to get this working.
- 3rdParty accesses my Worker URL.
- Worker Fetches data from another URL.
- Worker transforms JSON to XML.
4 Worker returns XML response to 3rdParty. <-- this is not working. How to fix?