确认lighttpd用于服务静态csv文件

确认lighttpd用于服务静态csv文件,csv,http-status-code-404,lighttpd,static-site,papaparse,Csv,Http Status Code 404,Lighttpd,Static Site,Papaparse,我正在使用lightpd在我的开发机器上进行调试。所有内容都是静态的。当我尝试使用加载csv文件时。我在Firefox中遇到以下错误 跨源请求被阻止:同一源策略不允许读取远程资源http://127.0.0.1:8080/thing/rt_data.csv. (原因:缺少CORS标头“访问控制允许原点”) 我的所有web调试都在/home/mm/Software/webby/中进行,lighttpd正在该目录中运行。这些文件都位于子目录/home/mm/Software/webby/thing。

我正在使用
lightpd
在我的开发机器上进行调试。所有内容都是静态的。当我尝试使用加载csv文件时。我在Firefox中遇到以下错误

跨源请求被阻止:同一源策略不允许读取远程资源http://127.0.0.1:8080/thing/rt_data.csv. (原因:缺少CORS标头“访问控制允许原点”)

我的所有web调试都在
/home/mm/Software/webby/
中进行,
lighttpd
正在该目录中运行。这些文件都位于子目录
/home/mm/Software/webby/thing
。JS代码是

      Papa.parse("http://127.0.0.1:8080/thing/rt_data.csv"
         {download: true,
         dynamicTyping: true,
         complete: csvprocess});
加载数据后,将调用函数
cvsprocess

lighttpd.conf
是:

   server.tag = ""
   server.document-root = "/home/mm/Software/webby/"
   setenv.add-response-header = ( "Access-Control-Allow-Origin" =>
           "http://home/mm/Software/webby/")
   server.upload-dirs = ( "/home/mm/webby/hoststuff" )
   server.errorlog = "/home/mm/Software/webby/hoststuff/error.log"
   accesslog.filename = "/home/mm/Software/webby/hoststuff/access.log"
   compress.cache-dir = "/home/mm/Software/PithyVis/hoststuff/compress/"
仅显示修改后的行

任何帮助都将不胜感激

编辑

我把访问控制改为

   setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*")
我仍然有404错误,但消息不同:

   [HTTP/1.1 404 Not Found 18ms]       
”http://home/mm/Software/webby/“
!”<代码>”http://127.0.0.1:8080/...“

访问控制允许源应该是URI(或
*
null
),而不是http://和文件系统路径的混搭