-
Notifications
You must be signed in to change notification settings - Fork 351
feat(clerk-js): Added integrity
attribute support
#4918
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
base: main
Are you sure you want to change the base?
feat(clerk-js): Added integrity
attribute support
#4918
Conversation
🦋 Changeset detectedLatest commit: 42e689e The changes in this PR will be included in the next version bump. This PR includes changesets to release 19 packages
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
integrity
attribute supportintegrity
attribute support
@jonahallibone is attempting to deploy a commit to the Clerk Production Team on Vercel. A member of the Team first needs to authorize it. |
Hello 👋 We currently close PRs after 60 days of inactivity. It's been 50 days since the last update here. If we missed this PR, please reply here. Otherwise, we'll close this PR in 10 days. Thanks for being a part of the Clerk community! 🙏 |
Any update on either this PR or this idea? |
Description
What
This PR introduces an
integrity
props and creates an attribute on the generated<Script />
tag.Why
Google CASA and other common security audits require that all third party scripts be accompanied by an SRI to pass their certification checks. Doing this with Clerk, while possible, was not supported natively. The recommended solution was to point
clerkJsUrl
at a blank file hosted on my domain, and manually add the script tag with the verison and SRI attribute to match. This PR introduces first party support forintegrity
such that this workaround can be obviated.Checklist
pnpm test
runs as expected.pnpm build
runs as expected.Type of change