Skip to content

Allow nonce to be set for debugbar_body - #38

Merged
julienbourdeau merged 1 commit into
julienbourdeau:masterfrom
trevorrjohn:master
Jun 15, 2024
Merged

julienbourdeau merged 1 commit into
julienbourdeau:masterfrom
trevorrjohn:master

Conversation

@trevorrjohn

Copy link
Copy Markdown
Contributor

Allow nonce to be set for content security policies

@trevorrjohn

Copy link
Copy Markdown
Contributor Author

@julienbourdeau any thoughts on this?

@tsvallender

Copy link
Copy Markdown

Just gone to try this gem for the first time and hit CSP issues—this would be a big help

@trevorrjohn

Copy link
Copy Markdown
Contributor Author

Hey @julienbourdeau just wanted to ask again if you had any questions or feedback on this change.

@julienbourdeau

Copy link
Copy Markdown
Owner

Hi @trevorrjohn
I'm really sorry for the delay. I don't see any reason not to merge it. I'll merge and release it this weekend 🙏

@trevorrjohn

Copy link
Copy Markdown
Contributor Author

Hey @julienbourdeau sorry to bother again. I know you have a lot going on, but I didn't want this to get dropped.

@julienbourdeau
julienbourdeau merged commit 3733d58 into julienbourdeau:master Jun 15, 2024
@julienbourdeau

Copy link
Copy Markdown
Owner

Hey @trevorrjohn Sorry again for the delay!
I just published 0.3.3 with this fix 6df7e2e

@pas256

pas256 commented Jul 24, 2024

Copy link
Copy Markdown

@trevorrjohn What did you have to do to get the nonce set? I might be doing something wrong, but what I see is:

<script type="text/javascript" data-turbo-permanent nonce="">
  window._debugbarConfigOptions = {"cable":{"url":"...
</script>

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.

4 participants