在网页上用js读取本地文件 (文件和html文件一个目录):
const res = fetch('Test.csv');
结果出错:
Access to fetch at 'file:///D:/workspace/Stocks/Stock-Chart/TradingviewChartCSVFile/data.csv' 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.
这个怎么处理?
谢谢