blob: d4a3a45d0a060b455d183470882036f615b4ffea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
'use strict';
/**
* TODO(i): this directive is not publicly documented until we know for sure that CSP can't be
* safely feature-detected.
*
* @name angular.module.ng.$compileProvider.directive.ngCsp
* @priority 1000
*
* @description
* Enables CSP (Content Security Protection) support. This directive should be used on the `<html>`
* element before any kind of interpolation or expression is processed.
*
* If enabled the performance of $parse will suffer.
*
* @element html
*/
var ngCspDirective = ['$sniffer', function($sniffer) {
return {
priority: 1000,
compile: function() {
$sniffer.csp = true;
}
};
}];
|