Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev server HTTPS 支持 #130

Open
nighca opened this issue Apr 26, 2021 · 0 comments
Open

dev server HTTPS 支持 #130

nighca opened this issue Apr 26, 2021 · 0 comments

Comments

@nighca
Copy link
Collaborator

nighca commented Apr 26, 2021

RT,有一些功能(如调起摄像头)需要页面本身是走 HTTPS 协议的;为了支持这类功能的本地调试开发,需要 dev server 支持 HTTPS(目前默认 HTTP)

支持 HTTPS 需要考虑以下几件事情:

  1. 对外 API 如何设计(大概率通过 build-config 配置项)
  2. HTTPS 下默认端口使用 443(现在默认是 80)
  3. webpack 默认用的证书是不可信的(目前尝试了下好像在浏览器里设置 Always Trust 好像没效果,还不清楚原因),这边是不是可以帮助做一些让证书可信的工作
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant