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

前端 未结 9 917
醉梦人生
醉梦人生 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条回答
  •  无人共我
    2020-11-22 04:16

    You can try putting 'Access-Control-Allow-Origin':'*' in response.writeHead(, {[here]}).

提交回复
热议问题