You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor($templateRequest): move $sce checks and trust the cache
Move all the calls to $sce.getTrustedUrl inside $templateRequest, and
also trust the contents of the cache. This allows prefetching templates
and to bypass the checks on things where they make no sense, like
templates specified in script tags.
Closesangular#12219Closesangular#12220Closesangular#12240
}).toThrowMinErr('$sce','insecurl','Blocked loading resource from url not allowed by $sceDelegate policy. URL: http://example.com/should-not-load.html');
1304
1303
}
1305
1304
));
1306
1305
1306
+
it('should trust what is already in the template cache',inject(
0 commit comments