CS Fundamentals Trainer · JavaScript · Security
Under a CSP whose script-src does not contain 'unsafe-inline', which source expressions can allow one specific inline <script> block to run?
Under a CSP whose `script-src` does not contain `'unsafe-inline'`, which source expressions can allow one specific inline `<script>` block to run?
- A `'nonce-...'` value that matches the block's `nonce` attribute
- `'self'`
- A `'sha256-...'` hash of the block's exact contents
- `'unsafe-eval'`
- `https:`
Difficulty: medium