Title: Allow `sms`-URLs · Issue #31462 · angular/angular · GitHub
Open Graph Title: Allow `sms`-URLs · Issue #31462 · angular/angular
X Title: Allow `sms`-URLs · Issue #31462 · angular/angular
Description: 🚀 feature request Relevant Package This feature request is for @angular/platform-browser, but the related code is located in @angular/core Description The method DomSanitizer#sanitize should allow resource-urls starting with sms Describe...
Open Graph Description: 🚀 feature request Relevant Package This feature request is for @angular/platform-browser, but the related code is located in @angular/core Description The method DomSanitizer#sanitize should allow ...
X Description: 🚀 feature request Relevant Package This feature request is for @angular/platform-browser, but the related code is located in @angular/core Description The method DomSanitizer#sanitize should allow ...
Opengraph URL: https://github.com/angular/angular/issues/31462
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow `sms`-URLs","articleBody":"# 🚀 feature request\r\n\r\n### Relevant Package\r\nThis feature request is for @angular/platform-browser, but the related code is located in @angular/core\r\n\r\n\r\n### Description\r\nThe method `DomSanitizer#sanitize` should allow resource-urls starting with `sms`\r\n\r\n\r\n### Describe the solution you'd like\r\nThe [SAFE_URL_PATTERN](https://github.com/angular/angular/blob/master/packages/core/src/sanitization/url_sanitizer.ts#L37) should be updated to allow `sms` in addition to `mailto`, `ftp`, `tel` and `file`.\r\nCurrent: `/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi`\r\nUpdated: `/^(?:(?:https?|mailto|ftp|tel|sms|file):|[^&:/?#]*(?:[/?#]|$))/gi`\r\n\r\n### Describe alternatives you've considered\r\nThe current workaround is using `bypassSecurityTrustResourceUrl`. This is not a problem in my case, since the URL is not user-defined and definitely starts with `sms`.\r\n","author":{"url":"https://github.com/probert94","@type":"Person","name":"probert94"},"datePublished":"2019-07-09T07:54:24Z","url":"https://github.com/angular/angular/issues/31462"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5cab7374-253d-cbc1-56c0-9de67e7ea440 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D692:29FFA9:1364D01:189DBE8:6B01230A |
| html-safe-nonce | 891dee0a676576d13736a6a0ab2d96260c1b24a02fa20cdeadd6f57df28938a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjkyOjI5RkZBOToxMzY0RDAxOjE4OURCRTg6NkIwMTIzMEEiLCJ2aXNpdG9yX2lkIjoiOTIwODk0OTk2Nzk2Njc3NDAyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 76443ce8684b3b5278e102fa8dcae55b3f3041c53e3a886b4d06bb8a73050945 |
| hovercard-subject-tag | issue:465627824 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/31462/issue_layout |
| twitter:image | https://opengraph.githubassets.com/23c95ba30b65fc9711da0895b1519e3e79800645d2800e357ee1a6c2b0318656/angular/angular/issues/31462 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/23c95ba30b65fc9711da0895b1519e3e79800645d2800e357ee1a6c2b0318656/angular/angular/issues/31462 |
| og:image:alt | 🚀 feature request Relevant Package This feature request is for @angular/platform-browser, but the related code is located in @angular/core Description The method DomSanitizer#sanitize should allow ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | probert94 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width