Closed loranger closed 1 year ago
It seems it's related to cors and setting a no-cors mode does not help, but I cannot figure out how I can consume this local server api with mande… Maybe by using a proxy? Is there a favorite mande proxy package? Or maybe a mande jsonp usage?
You should do api.post(formData)
instead of api.options.body = formData;
. In this scenario the types should prove helpful to debug and they should forbid invalid actions like setting the body in options.
Hello,
I'm sorry to bother, but I try to use mande for a simple 3D printer monitoring status service. This printer runs locally, so I cannot provide any public snippet, but I'll try to explain as mush as I can.
I'm building a vue.js app requesting an auth token. This is the way I did instanciate mande (from pinia):
I can't figure out why, even if the request seems legit and valid, returning a 200 status code and a json object, mande/fetch throws an exception
It may be a begginer error or something, but what did I miss ?