google / google/styleguide

jsguide: Explain more - what is CSP environments

Open
#587 1 comment 1 reaction 0 assignees View on GitHub
lang:js
Dominant language
HTML
Stars
39.6k
Forks
12.9k
Avg merge
42m
Merged PRs (30d)
15

Description

https://google.github.io/styleguide/jsguide.html#disallowed-features-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.

- Please explain what is CSP environments

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.