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

后端 未结 6 729
北荒
北荒 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:03

    Follow the below steps,

    1. npm install -g http-server, install the http-server in angular project.
    2. Go to file location which needs to be accessed and open cmd prompt, use cmd http-server ./
    3. Access any of the paths with port number in browser(ex: 120.0.0.1:8080) 4.now in your angular application use the path "http://120.0.0.1:8080/filename" Worked fine for me

提交回复
热议问题