Skip to content

chore(image): add content-security-policy and content-disposition#912

Open
sommeeeer wants to merge 2 commits into
opennextjs:mainfrom
sommeeeer:images-csp
Open

chore(image): add content-security-policy and content-disposition#912
sommeeeer wants to merge 2 commits into
opennextjs:mainfrom
sommeeeer:images-csp

Conversation

@sommeeeer

Copy link
Copy Markdown
Collaborator

Add Content-Security-Policy and Content-Disposition header to buildSuccessResponse in image optimization adapter.

It will now support images.contentSecurityPolicy and images.contentDispositionType from Next config aswell.

@changeset-bot

changeset-bot Bot commented Jun 23, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c935bda

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@opennextjs/aws Patch
app-pages-router Patch
app-router Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jun 23, 2025

Copy link
Copy Markdown

Open in StackBlitz

pnpm add https://pkg.pr.new/@opennextjs/aws@912

commit: c935bda

@conico974 conico974 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to import things from Next for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants