github withastro/astro @astrojs/internal-helpers@0.13.3

Patch Changes

  • 62e631d Thanks @matthewp! - Fixes image.domains and image.remotePatterns entries without a protocol allowing data URIs written with a host, such as data://cdn.example.com/,....

    image.domains entries and image.remotePatterns entries without a protocol now only allow http and https, the same as security.allowedDomains. To allow data URIs, add a pattern with protocol: 'data'. This also applies to remotePatterns: [{}], which no longer allows data URIs on its own:

    // astro.config.mjs
    export default defineConfig({
      image: {
        remotePatterns: [{}, { protocol: 'data' }],
      },
    });

    A remotePatterns entry with a port now also matches URLs that use that protocol's default port, so port: '443' matches https://example.com.

Don't miss a new astro release

NewReleases is sending notifications on new releases.