ILLuMiNaTe
$fecth not working properly
I doubt this is a cors issue.
If it was it would have been logged in the console log and it would have thrown an error.
Nuxt3 can send a preflight options request when fetching. The preflight request also doesnt hold any request data. However the second request is what matters.
In this scenario the request is timing out because the POST request is not reaching the server. Hence its timing out and the await does not continue.
I would first look whether the server accepts the post request at all. Do this with Postman
94 replies