Highlight the whole eval() override

I updated the link to hightlight not only the first line but the whole `window.eval()` override.
This commit is contained in:
Gabriel Augendre 2016-07-07 12:22:12 +02:00 committed by GitHub
parent eedac775e4
commit 72e811fea4

View file

@ -57,7 +57,7 @@ This is not bulletproof, but at the least, you should attempt the following:
* Do not disable `webSecurity`. Disabling it will disable the same-origin policy.
* Define a [`Content-Security-Policy`](http://www.html5rocks.com/en/tutorials/security/content-security-policy/)
, and use restrictive rules (i.e. `script-src 'self'`)
* [Override and disable `eval`](https://github.com/nylas/N1/blob/0abc5d5defcdb057120d726b271933425b75b415/static/index.js#L6)
* [Override and disable `eval`](https://github.com/nylas/N1/blob/0abc5d5defcdb057120d726b271933425b75b415/static/index.js#L6-L8)
, which allows strings to be executed as code.
* Do not set `allowDisplayingInsecureContent` to true.
* Do not set `allowRunningInsecureContent` to true.