File URL “Not allowed to load local resource” in the Internet Browser

后端 未结 6 715
北荒
北荒 2020-11-27 19:33

I\'ve got a major brainteaser.

I want to open a file in classic ASP. I\'m using various variables because things can change but the outcome is correct. I know this b

6条回答
  •  失恋的感觉
    2020-11-27 20:17

    For people do not like to modify chrome's security options, we can simply start a python http server from directory which contains your local file:

    python -m SimpleHTTPServer
    

    and for python 3:

    python3 -m http.server
    

    Now you can reach any local file directly from your js code or externally with http://127.0.0.1:8000/some_file.txt

提交回复
热议问题