Commit b3361b4
committed
fix: allow https scheme in CORS allowHost entries
Ktor's allowHost() defaults schemes to ["http"], so requests from
real browsers sending Origin: https://feedback.java.no were being
rejected by the CORS plugin before reaching the route handler,
even though the host itself was allowlisted. Explicitly allow
https for all configured hosts.1 parent 373d004 commit b3361b4
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments