Commit 4316d23
[release/11.0-preview6] Fix Blazor WASM Standalone HTTPS failure with Gateway (#67565)
* Fix Blazor WASM Standalone HTTPS failure with Gateway
The Blazor Gateway replaced the DevServer in #66729, switching from
Host.CreateDefaultBuilder (which auto-configures Kestrel HTTPS) to
WebApplication.CreateSlimBuilder (which does not). This caused
'blazorwasm' template projects to throw InvalidOperationException
when using an https:// launch profile URL.
Add UseKestrelHttpsConfiguration() to BlazorGateway.BuildWebHost so
Kestrel can bind HTTPS endpoints.
Fixes #67484
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add Gateway HTTPS regression test
Co-authored-by: lewing <24063+lewing@users.noreply.github.com>
* Assert Gateway binds HTTPS in regression test
Co-authored-by: lewing <24063+lewing@users.noreply.github.com>
---------
Co-authored-by: Larry Ewing <lewing@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: lewing <24063+lewing@users.noreply.github.com>1 parent 6bd759a commit 4316d23
3 files changed
Lines changed: 20 additions & 0 deletions
File tree
- src/Components/Gateway
- src
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
201 | 219 | | |
202 | 220 | | |
203 | 221 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
0 commit comments