Skip to content

Conversation

@neilmb
Copy link
Contributor

@neilmb neilmb commented Jan 12, 2026

Pull Request

Related to GSA/data.gov#4952

About

This adds a Content-Security-Policy as a meta tag in our base template.

One of the NPM packages we use glossary-panel has in it's latest released version a use of underscore's template function which calls Function which is not allowed without the unsafe-eval directive. Unfortunately, there is actually code in the master branch of https://github.com/18F/glossary to avoid that issue, but it hasn't been released to NPM. Rather than attempt to get a release made for that library, after reviewing the code, we accept that Function is being used safely and include the unsafe-eval directive.

PR TASKS

  • The actual code changes.

@neilmb neilmb requested a review from a team January 12, 2026 21:48
Copy link
Member

@cmhedrickREI cmhedrickREI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@neilmb neilmb merged commit 9023e50 into main Jan 15, 2026
8 checks passed
@neilmb neilmb deleted the nmb/4952-csp branch January 15, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants