3 Replies
I think the problem is that the body of the Response can't be an object directly
Based on mdn documentation you could create a Blob
Response: Response() constructor - Web APIs | MDN
The Response() constructor creates a new Response object.
You could use another thing as the body parameter but if you want an object i think the best way is to create the blob
But this is native javascript it is not part of the solid API