Repository navigation
@astrojs/internal-helpers@0.13.3
·
8 commits
to main
since this release
Patch Changes
-
62e631dThanks @matthewp! - Fixesimage.domainsandimage.remotePatternsentries without aprotocolallowing data URIs written with a host, such asdata://cdn.example.com/,....image.domainsentries andimage.remotePatternsentries without aprotocolnow only allowhttpandhttps, the same assecurity.allowedDomains. To allow data URIs, add a pattern withprotocol: 'data'. This also applies toremotePatterns: [{}], which no longer allows data URIs on its own:// astro.config.mjs export default defineConfig({ image: { remotePatterns: [{}, { protocol: 'data' }], }, });
A
remotePatternsentry with aportnow also matches URLs that use that protocol's default port, soport: '443'matcheshttps://example.com.