Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 1c2d2e8

Browse files
committed
docs($sceProvider): XSS when turning of SCE
Document that turning off SCE is very, very dangerous and should normally not be used by applications.
1 parent 144bcc8 commit 1c2d2e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ng/sce.js

+5
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,11 @@ function $SceDelegateProvider() {
342342
* returns the originally supplied value if the queried context type is a supertype of the
343343
* created type. If this condition isn't satisfied, throws an exception.
344344
*
345+
* <div class="alert alert-danger">
346+
* Disabling auto-escaping is extremely dangerous, it usually creates a Cross Site Scripting
347+
* (XSS) vulnerability in your application.
348+
* </div>
349+
*
345350
* @param {string} type The kind of context in which this value is to be used.
346351
* @param {*} maybeTrusted The result of a prior {@link ng.$sceDelegate#trustAs
347352
* `$sceDelegate.trustAs`} call.

0 commit comments

Comments
 (0)