mirror of
https://github.com/google/styleguide.git
synced 2026-10-28 08:25:21 +08:00
js: link to a definition of CSP
"CSP environments" is not explained. Spell out Content Security Policy and link to a description of it.
This commit is contained in:
1 parent
cbce6a3f22
commit
dde305184e
1 file changed
+3
-2
+3
-2
@@ -2839,8 +2839,9 @@ been banned in strict mode since ES5.
|
||||
#### 5.11.2 Dynamic code evaluation
|
||||
|
||||
Do not use `eval` or the `Function(...string)` constructor (except for code
|
||||
loaders). These features are potentially dangerous and simply do not work in CSP
|
||||
environments.
|
||||
loaders). These features are potentially dangerous and simply do not work in
|
||||
environments with a
|
||||
[Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP).
|
||||
|
||||
<a id="disallowed-features-automatic-semicolon-insertion"></a>
|
||||
|
||||
|
||||
Reference in new issue
Block a user