Commit 31abbb6
committed
fix: only mark custom endpoints as HTTPS-compatible when URL scheme is actually HTTPS
Custom endpoints from T3CODE_DESKTOP_HTTPS_ENDPOINTS were unconditionally
marked with hostedHttpsCompatibility: 'compatible', bypassing the automatic
classifyHostedHttpsCompatibility check. If a user mistakenly supplies an
http:// URL, the endpoint would be incorrectly marked as compatible with the
hosted HTTPS app.
Now we check the URL protocol first and only override with 'compatible' for
actual https: URLs. For http: URLs, the field is omitted, letting the
auto-classifier in createAdvertisedEndpoint correctly return
'mixed-content-blocked'.1 parent 2045416 commit 31abbb6
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
165 | | - | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
0 commit comments