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 working in development, I get constant console errors. astro dev shows "Unable to obtain SRI hash for local resource", while my web console shows errors alike "The page’s settings blocked an inline style (style-src-elem) from being applied because it violates the following directive: “style-src 'self' 'hashes' 'hashes' 'hashes'". In addition, I get errors when dynamically loading certain content...
From all these errors, it seems that there is a problem with the SRI hashes, but I am not sure what I am doing wrong.
I am rending a server in hybrid mode and setting the Content-Security-Policy in
astro.config.mjs
as follows:When working in development, I get constant console errors.
astro dev
shows "Unable to obtain SRI hash for local resource", while my web console shows errors alike "The page’s settings blocked an inline style (style-src-elem) from being applied because it violates the following directive: “style-src 'self' 'hashes' 'hashes' 'hashes'". In addition, I get errors when dynamically loading certain content...From all these errors, it seems that there is a problem with the SRI hashes, but I am not sure what I am doing wrong.
I setup my sriHashesModule as in the docs:
Am I doing something wrong in setting this up?
Many thanks for your work and support!
The text was updated successfully, but these errors were encountered: