Skip to content

fix: remove internal next headers in middleware response #777

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 17, 2025

Conversation

sommeeeer
Copy link
Contributor

@sommeeeer sommeeeer commented Mar 17, 2025

For #772

Internally Next uses x-middleware-set-cookie and x-middleware-next. These are then removed on the response by Next code, but since we have a custom middleware we need to remove it our self.

Copy link

changeset-bot bot commented Mar 17, 2025

🦋 Changeset detected

Latest commit: 08cfe37

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

Copy link

pkg-pr-new bot commented Mar 17, 2025

Open in Stackblitz

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

commit: 08cfe37

Copy link
Contributor

@conico974 conico974 left a comment

Choose a reason for hiding this comment

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

LGTM Thanks

@conico974 conico974 merged commit 4dc08a9 into opennextjs:main Mar 17, 2025
3 checks passed
@github-actions github-actions bot mentioned this pull request Mar 14, 2025
@sommeeeer sommeeeer deleted the remove-middleware-header branch March 17, 2025 20:36
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