Baroshem / nuxt-security

🛡 Automatically configure your app to follow OWASP security patterns and principles by using HTTP Headers and Middleware
https://nuxt-security.vercel.app/
MIT License
738 stars 56 forks source link

sri: fetch buffers from storage and convert to object #396

Closed vejja closed 3 months ago

vejja commented 3 months ago

Fixes #395

Types of changes

Description

Subresource Integrity for SSR is broken when using Nuxt 3.9+ This is related to the way Nuxt 3.9+ bundles strings, which is now using Uint8Array buffers.

This PR fixes this issue by: 1- correctly fetching SRI hashes in Uint8Array format 2- upgrading the module dependency to Nuxt 3.10

Checklist:

vercel[bot] commented 3 months ago

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

Name Status Preview Updated (UTC)
nuxt-security ✅ Ready (Inspect) Visit Preview Mar 6, 2024 2:50pm