diff options
| author | Vojta Jina | 2013-10-17 19:25:08 -0700 |
|---|---|---|
| committer | Igor Minar | 2013-10-18 15:35:41 -0700 |
| commit | 14438058da39c3e523f420549074934ca5881b09 (patch) | |
| tree | acc97d90025e9d80f9869012554763233f412caf /docs/content/error/sce/insecurl.ngdoc | |
| parent | e8cc85f733a49ca53e8cda5a96bbaacc9a20ac7e (diff) | |
| download | angular.js-14438058da39c3e523f420549074934ca5881b09.tar.bz2 | |
docs: correct broken links
This also contains some whitespace corrections by my editor.
Diffstat (limited to 'docs/content/error/sce/insecurl.ngdoc')
| -rw-r--r-- | docs/content/error/sce/insecurl.ngdoc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/content/error/sce/insecurl.ngdoc b/docs/content/error/sce/insecurl.ngdoc index b5d3ce84..e7c61010 100644 --- a/docs/content/error/sce/insecurl.ngdoc +++ b/docs/content/error/sce/insecurl.ngdoc @@ -3,21 +3,21 @@ @fullName Processing of a Resource from Untrusted Source Blocked @description -AngularJS' {@link api/ng.$sce#strictcontextualescaping Strict Contextual Escaping (SCE)} mode (enabled by default) has blocked loading a resource from an insecure URL. +AngularJS' {@link api/ng.$sce Strict Contextual Escaping (SCE)} mode (enabled by default) has blocked loading a resource from an insecure URL. Typically, this would occur if you're attempting to load an Angular template from an untrusted source. It's also possible that a custom directive threw this error for a similar reason. -Angular only loads templates from trusted URLs (by calling {@link api/ng.$sce#getTrustedResourceUrl $sce.getTrustedResourceUrl} on the template URL). +Angular only loads templates from trusted URLs (by calling {@link api/ng.$sce#methods_getTrustedResourceUrl $sce.getTrustedResourceUrl} on the template URL). By default, only URLs that belong to the same origin are trusted. These are urls with the same domain and protocol as the application document. The {@link api/ng.directive:ngInclude ngInclude} directive and {@link guide/directive directives} that specify a `templateUrl` require a trusted resource URL. To load templates from other domains and/or protocols, either adjust the {@link -api/ng.$sceDelegateProvider#resourceUrlWhitelist whitelist}/ {@link -api/ng.$sceDelegateProvider#resourceUrlBlacklist blacklist} or wrap the URL with a call to {@link -api/ng.$sce#trustAsResourceUrl $sce.trustAsResourceUrl}. +api/ng.$sceDelegateProvider#methods_resourceUrlWhitelist whitelist}/ {@link +api/ng.$sceDelegateProvider#methods_resourceUrlBlacklist blacklist} or wrap the URL with a call to {@link +api/ng.$sce#methods_trustAsResourceUrl $sce.trustAsResourceUrl}. **Note**: The browser's {@link https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest Same Origin |
