How can I resolve the error “URL scheme must be “http” or “https” for CORS request.” for this code [duplicate]
You need to be serving your index.html locally or have your site hosted on a live server somewhere for the Fetch API to work properly. The files need to be served using the http or https protocols. If you just clicked on your index.html from your file explorer than your browser is grabbing those files … Read more