Skip to content

Astro's image service is incompatible with strict CSP #838

@florian-lefebvre

Description

@florian-lefebvre

Describe the bug
The Astro image service generates inline styles such as object-fit:cover;max-width:1100px;max-height:982px;aspect-ratio:1.120162932790224;width:100%. That is incompatible with strict CSP.

Expected behavior
I'm not sure how this can be solved tbh. Maybe by generating css or hashes on the fly

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions