fix: HTTPS with self-signed cert for Web Crypto API support
Browsers disable crypto.subtle on non-localhost HTTP. The frontend server now generates a self-signed TLS cert at startup and serves over HTTPS by default (FRONTEND_TLS=true). FRONTEND_TLS=0 disables it for localhost dev. Added axum-server (tls-rustls) + rcgen deps to the frontend-server crate.
This commit is contained in:
parent
47000beef4
commit
043b4442a7
2 changed files with 38 additions and 8 deletions
|
|
@ -12,3 +12,5 @@ axum = "0.7"
|
|||
tokio = { version = "1", features = ["full"] }
|
||||
tower-http = { version = "0.5", features = ["fs", "trace"] }
|
||||
reqwest = { version = "0.12", features = ["json"] }
|
||||
axum-server = { version = "0.7", features = ["tls-rustls"] }
|
||||
rcgen = "0.13"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue