Skip to content

chore(website): bump astro to 5.18.1#1167

Merged
fhennig merged 1 commit into
mainfrom
bump-astro-5.18.1
Apr 27, 2026
Merged

chore(website): bump astro to 5.18.1#1167
fhennig merged 1 commit into
mainfrom
bump-astro-5.18.1

Conversation

@fhennig
Copy link
Copy Markdown
Contributor

@fhennig fhennig commented Apr 27, 2026

Summary

🤖 Generated with Claude Code


I had this Problem (Claude's words):

The problem

Logging in via GitHub OAuth on staging fails with "Cross-site POST form submissions are
forbidden". Auth.js generates this error when it detects a CSRF/origin mismatch.

Root cause

Auth.js doesn't know it's running behind nginx and being served over HTTPS. It thinks its own URL
is http://staging.genspectrum.org, which causes two issues:

  1. It sets cookies without the __Host-/__Secure- prefixes (insecure cookies)
  2. When the browser submits the sign-in form with callbackUrl=https://..., Auth.js sees a
    protocol mismatch and rejects it as cross-site

What we tried

AUTH_TRUST_HOST=true — the Auth.js-recommended fix for reverse proxy setups. It picks up
X-Forwarded-Host correctly (callback URL changes from http://localhost to
http://staging.genspectrum.org) but ignores X-Forwarded-Proto, so the scheme stays http://
regardless.

...

Turns out, it is actually an Astro bug. This release fixes it.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dashboards Ready Ready Preview, Comment Apr 27, 2026 11:58am

Request Review

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@fhennig fhennig merged commit 3b9782d into main Apr 27, 2026
10 checks passed
@fhennig fhennig deleted the bump-astro-5.18.1 branch April 27, 2026 13:22
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