Thank so far. I added the code to my 'boostrap.js' and i recompiled. Unfortunately this has generated a new error in the console:
Access to XMLHttpRequest at 'https://kidsclub.site/upDateChild' from origin 'https://www.kidsclub.site' has been blocked by CORS policy: Request header field x-csrf-token is not allowed by Access-Control-Allow-Headers in preflight response.
But I don't have x-csrf-token in my Cors policy:
public function handle(Request $request, Closure $next)
{
return $next($request)
->header('Access-Control-Allow-Origin','*') //https://Kidsclub.site
->header('Access-Control-Allow-Methods','GET, POST')
->header('Access-Control-Allow-Headers','Content-type,x-requested-with, Authorization');
}