# How to use https when dfx start on local network

**URL:** <https://forum.dfinity.org/t/how-to-use-https-when-dfx-start-on-local-network/43945>\
**Category:** Developers\
**Tags:** Discussing\
**Created:** [April 16, 2025, 4:11pm UTC](https://forum.dfinity.org/t/how-to-use-https-when-dfx-start-on-local-network/43945 "2025-04-16T16:11:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frankessa](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/frankessa/32/26967_2.png) [@Frankessa](https://forum.dfinity.org/u/Frankessa)\
**Post date:** [April 16, 2025, 4:11pm UTC](https://forum.dfinity.org/t/how-to-use-https-when-dfx-start-on-local-network/43945/1 "2025-04-16T16:11:33Z")

</div>

I am an AI developer. When I work in local env and try to debug some function for voice interaction, I notice that Chrome already can’t support microphone invoke under http protocal. So I have tried to add https supporting,it always error:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/b/c/bc190f1b795109efa1dfebde3a41e3860f75ec21.jpeg)  
I had added related config in dfx.json following cursor’s guiding,but can’t work now:  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/b/3/b3532435128f5181cb307d6aebcd9929103038ec.png)

So I need to know is anyone had run https test case in local network? Give me some suggestion  
Oh, my project git repo is :

> **[GitHub - yangsenessa/aio-base-frontend](https://github.com/yangsenessa/aio-base-frontend)**
>
> 通过在 GitHub 上创建帐户来为 yangsenessa/aio-base-frontend 开发做出贡献。

---

<div class="post-metadata">

**Author:** ![Frankessa](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/frankessa/32/26967_2.png) [@Frankessa](https://forum.dfinity.org/u/Frankessa)\
**Post date:** [April 16, 2025, 4:23pm UTC](https://forum.dfinity.org/t/how-to-use-https-when-dfx-start-on-local-network/43945/2 "2025-04-16T16:23:39Z")

</div>

Infact, I really can run ‘npm run dev’ to start frontend separately,but there are some ssl error happend:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/d/0/d022008a828309bd3b854fc8458e09aea3eddef6.png)

---

<div class="post-metadata">

**Author:** ![C-B-Elite](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/c-b-elite/32/34356_2.png) [@C-B-Elite](https://forum.dfinity.org/u/C-B-Elite)\
**Post date:** [April 17, 2025, 4:10am UTC](https://forum.dfinity.org/t/how-to-use-https-when-dfx-start-on-local-network/43945/3 "2025-04-17T04:10:45Z")

</div>

Running locally often comes with all sorts of strange issues. If possible, you can use ic\_cdk::print to output debug information, and test directly on the IC mainnet as well.

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [April 17, 2025, 10:20am UTC](https://forum.dfinity.org/t/how-to-use-https-when-dfx-start-on-local-network/43945/4 "2025-04-17T10:20:27Z")

</div>

> [@Frankessa](#):
>
> I had added related config in dfx.json following cursor’s guiding,but can’t work now:

That’s all hallucination. I don’t know of a way to run dfx using https locally.

---

<div class="post-metadata">

**Author:** ![Frankessa](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/frankessa/32/26967_2.png) [@Frankessa](https://forum.dfinity.org/u/Frankessa)\
**Post date:** [April 25, 2025, 3:27am UTC](https://forum.dfinity.org/t/how-to-use-https-when-dfx-start-on-local-network/43945/5 "2025-04-25T03:27:32Z")

</div>

I already find the sulotion for this case:use react-media-recorder instead of origin H5 drive,it can work now.

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/7/9/79e3191c685cb41604bde7882aac265c4bac7faf.jpeg)

---

<div class="post-metadata">

**Author:** ![e274426380](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/e274426380/32/2555_2.png) [@e274426380](https://forum.dfinity.org/u/e274426380)\
**Post date:** [April 25, 2025, 7:16am UTC](https://forum.dfinity.org/t/how-to-use-https-when-dfx-start-on-local-network/43945/6 "2025-04-25T07:16:37Z")

</div>

If you only need to debug the front-end locally and not the back-end, you don’t need to use dfx, just run it directly in a windows environment.
