github / github/secure_headers

nonced tag helpers including nonce directive in csp has potential to break applications

Open
#470 17 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
3.2k
Forks
253
Avg merge
19h 11m
Merged PRs (30d)
1

Description

# Bugs

## Nonced tag helpers including nonce directive in csp has potential to break applications

### Problem

Given an application with inline script tags, and a CSP that allows them with `'unsafe-inline'`, using `nonced_javascript_tag` will cause a nonce directive to appear in the CSP header. Modern browsers will then ignore the `'unsafe-inline'` directive and all other script tags without a nonce will cease to be executed.

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.