From 9e16aaf3a912b0ab189b9a3a097e68602ddd2740 Mon Sep 17 00:00:00 2001 From: Michele Beltrame Date: Mon, 13 Jan 2014 10:37:09 +0100 Subject: docs($sce/insecurl): mention port in the same origin policy Closes #5759 The default trusted origin appears to be the same protocol+domain+port, non just protocol+domain. I patched the doc accordingly. --- docs/content/error/$sce/insecurl.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/error/$sce/insecurl.ngdoc b/docs/content/error/$sce/insecurl.ngdoc index 9691e2b5..f39c7065 100644 --- a/docs/content/error/$sce/insecurl.ngdoc +++ b/docs/content/error/$sce/insecurl.ngdoc @@ -10,7 +10,7 @@ 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 ng.$sce#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. +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. The {@link ng.directive:ngInclude ngInclude} directive and {@link guide/directive directives} that specify a `templateUrl` require a trusted resource URL. -- cgit v1.2.3