create-react-app: how to use https instead of http?

后端 未结 19 1126
眼角桃花
眼角桃花 2020-12-24 10:04

I was wondering if anyone knows how to use https on dev for the \'create-react-app\' environment. I can\'t see anything about that in the README or quick googling. I just wa

19条回答
  •  隐瞒了意图╮
    2020-12-24 11:03

    if it's still not working properly because of "your connection is not private" issues (in chrome), this worked for me just fine:

    https://github.com/facebook/create-react-app/issues/3441

    In short:

    1. First I exported certificate from chrome (view this).
    2. Imported the certificate into Windows (using certmgr.msc).
    3. Allowed chrome://flags/#allow-insecure-localhost flag. How to allow insecure localhost

提交回复
热议问题