XMLHttpRequest Origin null is not allowed Access-Control-Allow-Origin for file:/// to file:/// (Serverless)

前端 未结 9 797
醉梦人生
醉梦人生 2020-11-22 03:30

I\'m trying to create a website that can be downloaded and run locally by launching its index file.

All the files are local, no resources are used online.

Wh

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 04:03

    What about using the javascript FileReader function to open the local file, ie:

    
    
    

    Now Click Choose file button and browse to the file file:///C:/path/to/XSL%20Website/data/home.xml

提交回复
热议问题