Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: nonce prop #82

Merged
merged 3 commits into from
Jul 14, 2024
Merged

feat: nonce prop #82

merged 3 commits into from
Jul 14, 2024

Conversation

huntabyte
Copy link
Member

@huntabyte huntabyte commented Jul 14, 2024

Closes: #47

Exposes a nonce prop, which can be used to apply a nonce you generate to the <script> tag, enabling you to allow-list mode-watcher in your CSP policies.

<ModeWatcher nonce="my-secret-nonce" />

Copy link

changeset-bot bot commented Jul 14, 2024

🦋 Changeset detected

Latest commit: 1a5e629

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
mode-watcher Patch
mode-watcher-docs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Jul 14, 2024

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
mode-watcher ✅ Ready (View Log) Visit Preview 1a5e629

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.

%sveltekit.nonce% not being replaced
1 participant