diff --git a/components/my-layout.html b/components/my-layout.html index 17a513a..9268b91 100644 --- a/components/my-layout.html +++ b/components/my-layout.html @@ -30,5 +30,20 @@ + diff --git a/src/middleware.ts b/src/middleware.ts index 1a4a7ca..678e172 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -23,6 +23,8 @@ export const middleware: HyperHandle = ({ request, platform }) => { ["x-img-src", "data:"], // TODO - generate? - Hash for Logo inline styles ["x-style-src", `'sha256-kXLrG8qzlz0MMhgMvdF9YD6tca5CYXeC1iFSTHDsO8w='`], + // Inline speculation rules + ["x-script-src", `'sha256-+0XEkXfEhTK/fdyJwJ40zJo+/+nwkO10LI+U1CnyEXA='`], // "this.rel=`stylesheet`" ["x-script-src", `'unsafe-hashes'`], ["x-script-src", `'sha256-BGXQRYq/G9+8wEtSYSbQRnDRz8/8apfi/W/CUBMh9w0='`],