I moved the axios post requests from the .then syntax to try-catch for both Login and Register components. I found that I no longer need to pass the header (headers: { "Content-type": "application/json" }) as it didn't work with it. Is this done correctly?
Hi @mathieudutour,
I moved the axios post requests from the .then syntax to try-catch for both Login and Register components. I found that I no longer need to pass the header (headers: { "Content-type": "application/json" }) as it didn't work with it. Is this done correctly?
It worked but thought it's best to double check.
Thank you, Stefi
26