Skip to content

Commit 9e16aaf

Browse files
mc7244pkozlowski-opensource
authored andcommitted
docs($sce/insecurl): mention port in the same origin policy
Closes angular#5759 The default trusted origin appears to be the same protocol+domain+port, non just protocol+domain. I patched the doc accordingly.
1 parent d3fbc25 commit 9e16aaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/error/$sce/insecurl.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ It's also possible that a custom directive threw this error for a similar reason
1010

1111
Angular only loads templates from trusted URLs (by calling {@link ng.$sce#getTrustedResourceUrl $sce.getTrustedResourceUrl} on the template URL).
1212

13-
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.
13+
By default, only URLs that belong to the same origin are trusted. These are urls with the same domain, protocol and port as the application document.
1414

1515
The {@link ng.directive:ngInclude ngInclude} directive and {@link guide/directive directives} that specify a `templateUrl` require a trusted resource URL.
1616

0 commit comments

Comments
 (0)