TypeError: Request with 'cors' mode must have URL with HTTP or HTTPS scheme