(url)
| 288 | * @return {boolean} |
| 289 | */ |
| 290 | export function isSecureUrlDeprecated(url) { |
| 291 | url = urlAsLocation(url); |
| 292 | return ( |
| 293 | url.protocol == 'https:' || |
| 294 | url.hostname == 'localhost' || |
| 295 | url.hostname == '127.0.0.1' || |
| 296 | endsWith(url.hostname, '.localhost') |
| 297 | ); |
| 298 | } |
| 299 | |
| 300 | /** |
| 301 | * Asserts that a given url is HTTPS or protocol relative. It's a user-level |
no test coverage detected