Uzyxen
useFetch server-side
I'm getting an error "hydration text content mismatch on". I have to send useFetch requests in a loop and add responses to the array. For a while it's good and array has few different elements but after 1-2 seconds it's the same
code:
@kapa.ai
10 replies
$fetch from client vs from server
@kapa.ai but I allowed all methods and headers:
builder.Services.AddCors(options =>
{
options.AddPolicy("AllowNuxtApp",
builder => builder
.WithOrigins("http://localhost:3000") // Nuxt app URL
.AllowAnyMethod()
.AllowAnyHeader()
.AllowCredentials());
});
11 replies