Patch Changes
-
#14286
09c5db3
Thanks @ematipico! - BREAKING CHANGES only to the experimental CSP featureThe following runtime APIs of the
Astro
global have been renamed:Astro.insertDirective
toAstro.csp.insertDirective
Astro.insertStyleResource
toAstro.csp.insertStyleResource
Astro.insertStyleHash
toAstro.csp.insertStyleHash
Astro.insertScriptResource
toAstro.csp.insertScriptResource
Astro.insertScriptHash
toAstro.csp.insertScriptHash
The following runtime APIs of the
APIContext
have been renamed:ctx.insertDirective
toctx.csp.insertDirective
ctx.insertStyleResource
toctx.csp.insertStyleResource
ctx.insertStyleHash
toctx.csp.insertStyleHash
ctx.insertScriptResource
toctx.csp.insertScriptResource
ctx.insertScriptHash
toctx.csp.insertScriptHash
-
#14283
3224637
Thanks @ematipico! - Fixes an issue where CSP headers were incorrectly injected in the development server. -
#14275
3e2f20d
Thanks @florian-lefebvre! - Adds support for experimental CSP when using experimental fontsExperimental fonts now integrate well with experimental CSP by injecting hashes for the styles it generates, as well as
font-src
directives.No action is required to benefit from it.
-
#14280
4b9fb73
Thanks @ascorbic! - Fixes a bug that caused cookies to not be correctly set when using middleware sequences -
#14276
77281c4
Thanks @ArmandPhilippot! - Adds a missing export forresolveSrc
, a documented image services utility.