-
Notifications
You must be signed in to change notification settings - Fork 122
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
Add support for Subresource Integrity #176
Comments
This comment has been minimized.
This comment has been minimized.
@tmaier Given that this requires changes to public APIs in Experimental support is available in the next branch, you can try it now by explicitly adding gem 'vite_rails', '~> 4.0.0.alpha1' You must also add vite-plugin-manifest-sri to your import { defineConfig } from 'vite'
import RubyPlugin from 'vite-plugin-ruby'
import ManifestSRI from 'vite-plugin-manifest-sri'
export default defineConfig({
plugins: [
RubyPlugin(),
ManifestSRI(),
],
}) |
@ElMassimo is this feature still not ready to release? Could be really helpful for security reasons. |
The implementation in
This hasn't been a highly requested feature. I'm waiting for either breaking changes in Vite or something else that justifies releasing a new major. |
Hey @ElMassimo, is it possible to update the I'd like to use the Subresource integrity feature, but also need some of the fixes & features that were introduced in later releases (example) Thanks! |
Hi there! Any news on this feature? Is there something I can do to help? I am working on replacing Webpacker with Vite for Mastodon (see mastodon/mastodon#24981) and SRI is a requirement for us. |
Also curious here ... this feature seems like it's been done for ~2+ years, but hasn't been released yet? Are you still hesitant to ship 4.0 with JUST this? If so, are you open to PRs that try to fold it into 3.x? Separately - are there any other changes queueud up (I see some ruby version support changes in last few months, 3.0 is now EOL, etc...) which might help justify a 4.0? |
Is your feature request related to a problem? Please describe.
Similar to rails/webpacker#323
Sprockets supported subresource integrity out of the box. It would be nice if
worked the same.
Describe the solution you'd like
Calculate the hash for each file and add it to the relevant tags
Describe alternatives you've considered
None.
Additional context
The text was updated successfully, but these errors were encountered: