Disable the use of third-party cookies in Images by default.

This commit is contained in:
prototypa
2024-04-11 22:22:52 -04:00
parent 3dbffbad86
commit 8220b67429
2 changed files with 2 additions and 1 deletions

View File

@@ -76,6 +76,7 @@ export default defineConfig({
image: {
service: squooshImageService(),
domains: ["cdn.pixabay.com"],
},
markdown: {

View File

@@ -49,4 +49,4 @@ if (_image !== null && typeof _image === 'object') {
}
---
{!image ? <Fragment /> : <img src={image.src} {...image.attributes} />}
{!image ? <Fragment /> : <img src={image.src} crossorigin="anonymous" referrerpolicy="no-referrer" {...image.attributes} />}