You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i change the code to sriHashes = sriHashesRaw ?? {}; the bug is gone. So it seems like the format of sriHashesRaw is already correct and the new TextDecoder().decode(sriHashesRaw) throws the error.
This only happens in a production build for me.
I would love to hear how this could be fixed!
The text was updated successfully, but these errors were encountered:
Version
nuxt-security: v1.3.0
nuxt: v3.11.1
I am getting a nuxt 500 error since today, and its coming from the file: https://github.com/Baroshem/nuxt-security/blob/main/src/runtime/nitro/plugins/03-subresourceIntegrity.ts , on line 26 . It seems that .decoder() expects a different format than this nuxt app provides.
In my case
sriHashesRaw
is:When i change the code to
sriHashes = sriHashesRaw ?? {};
the bug is gone. So it seems like the format ofsriHashesRaw
is already correct and thenew TextDecoder().decode(sriHashesRaw)
throws the error.This only happens in a production build for me.
I would love to hear how this could be fixed!
The text was updated successfully, but these errors were encountered: