Skip to content

Conversation

xrav3nz
Copy link

@xrav3nz xrav3nz commented Jul 11, 2025

The flamegraph page was missing CSP nonce attributes on its inline script tags, causing Content Security Policy violations when nonces were configured, leading to a blank page when trying to view flamegraphs.

This PR extracts the nonce retrieval logic into a shared method and applies it consistently to both the main profiler UI and flamegraph pages.

image

@xrav3nz xrav3nz force-pushed the kyle/flamegraph-nonce branch 2 times, most recently from 80f12c2 to 4230256 Compare July 11, 2025 15:59
@xrav3nz xrav3nz marked this pull request as ready for review July 11, 2025 15:59
The flamegraph page was missing CSP nonce attributes on its inline script tags,
causing Content Security Policy violations when nonces were configured. This
change extracts the nonce retrieval logic into a shared method and applies it
consistently to both the main profiler UI and flamegraph pages.
@xrav3nz xrav3nz force-pushed the kyle/flamegraph-nonce branch from 4230256 to 487e5fc Compare August 13, 2025 16:06
Copy link
Contributor

@kbrock kbrock left a comment

Choose a reason for hiding this comment

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

Nice

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.

2 participants