Trying to use fetch and pass in mode: no-cors

后端 未结 6 855
悲&欢浪女
悲&欢浪女 2020-11-22 02:33

I can hit this endpoint, http://catfacts-api.appspot.com/api/facts?number=99 via Postman and it returns JSON

Additionally I am using create

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-22 03:11

    Very easy solution (2 min to config) is to use local-ssl-proxy package from npm

    The usage is straight pretty forward:
    1. Install the package: npm install -g local-ssl-proxy
    2. While running your local-server mask it with the local-ssl-proxy --source 9001 --target 9000

    P.S: Replace --target 9000 with the -- "number of your port" and --source 9001 with --source "number of your port +1"

提交回复
热议问题