Fetch API cannot load file:///C:/Users/Jack/Desktop/Books_H/book-site/public/api/books. URL scheme must be “http” or “https” for CORS request

后端 未结 3 703
刺人心
刺人心 2020-12-11 15:16

Just started learning node js in my school. They gave us this half-finished task and i need to make the next and prev buttons work. However i get some errors in the console

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-11 15:57

    If you are under Windows, create a new site in your local IIS (you should enable IIS in Windows components if not already) to your project folder. Then open http://localhost:8080 (or other port you can setup in the ISS for your new site)

提交回复
热议问题