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

fix(rspack): make subresourceIntegrity usage configurable #29629

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

Coly010
Copy link
Contributor

@Coly010 Coly010 commented Jan 15, 2025

Current Behavior

We currently set Subresource Integrity (SRI) on all scripts injected via HtmlRspackPlugin.
This should be configurable.

Expected Behavior

Expose an option to set SRI - mark false by default to match Rspack's HtmlRspackPlugin behaviour

@Coly010 Coly010 requested a review from a team as a code owner January 15, 2025 11:32
@Coly010 Coly010 requested a review from mandarini January 15, 2025 11:32
@Coly010 Coly010 self-assigned this Jan 15, 2025
Copy link

vercel bot commented Jan 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Jan 15, 2025 11:34am

Copy link

nx-cloud bot commented Jan 15, 2025

View your CI Pipeline Execution ↗ for commit fb561ff.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 9m 41s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 1m 10s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 1s View ↗
nx-cloud record -- nx format:check --base=f24a8... ✅ Succeeded 18s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 17s View ↗
nx documentation --no-dte ✅ Succeeded 46s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-15 11:48:32 UTC

@Coly010 Coly010 merged commit 0d5e53d into master Jan 15, 2025
6 checks passed
@Coly010 Coly010 deleted the rspack/sri-enabled-default branch January 15, 2025 14:43
FrozenPandaz pushed a commit that referenced this pull request Jan 15, 2025
## Current Behavior
We currently set Subresource Integrity (SRI) on all scripts injected via
`HtmlRspackPlugin`.
This should be configurable.

## Expected Behavior
Expose an option to set SRI - mark false by default to match Rspack's
`HtmlRspackPlugin` behaviour

(cherry picked from commit 0d5e53d)
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants