TypeError: Faile URL scheme must be “http” or “https” for CORS requet
浏览器不允许file://使用ajax调用的URL(出于安全原因)file:///D:/workspace/%E6%85%95%E8%AF%BE/08.vue/hello%20world/09.%E8%B4%AD%E7%89%A9%E8%BD%A6%E5%B0%8F%E6%A1%88%E4%BE%8B/index.html。
需要通过Web服务器加载网页,并使用http://或https://而不是file://通过该Web服务器发出ajax请求。
解决办法:通过本地服务器加载网页,并通过Web服务器发出ajax请求
http://127.0.0.1:5500/08.vue/hello%20world/09.%E8%B4%AD%E7%89%A9%E8%BD%A6%E5%B0%8F%E6%A1%88%E4%BE%8B/index.html