solved:
While trying to access a local file in html using:
xmlhttp.open(“GET”, “test.xml”, true)
We get CORS error,
Access to XMLHttpRequest at ‘file:///D:/test.xml‘ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https, isolated-app.

solved:
While trying to access a local file in html using:
xmlhttp.open(“GET”, “test.xml”, true)
We get CORS error,
Access to XMLHttpRequest at ‘file:///D:/test.xml‘ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https, isolated-app.