Skip to content

Scope the admin cookie path requirement to the versions it affects - #3468

Open
derrickmehaffy wants to merge 1 commit into
mainfrom
repo/scope-admin-cookie-path-note
Open

Scope the admin cookie path requirement to the versions it affects#3468
derrickmehaffy wants to merge 1 commit into
mainfrom
repo/scope-admin-cookie-path-note

Conversation

@derrickmehaffy

@derrickmehaffy derrickmehaffy commented Sep 10, 2026

Copy link
Copy Markdown
Member

This PR scopes the admin cookie path warning to the versions it applies to, since the default cookie path changed in Strapi 5.51. It also corrects the stated symptom: the browser does send the refresh cookie, so requests to the admin API are authenticated at that layer. What fails is the admin panel reading its own access cookie from a page outside the cookie path, so the login request succeeds and every request after it is rejected. Verified by reproducing it on 5.53.0 with url set to /dashboard.

A fix is proposed in strapi/strapi#27619 to derive the cookie path from url automatically. Once that ships, this snippet should gain an upper version bound or be removed.

Direct preview link 👉 here

The default cookie path changed in 5.51, so the extra configuration step
applies from that version onwards. Also corrects the symptom: the browser
does send the refresh cookie, the panel just cannot read its own access
cookie from a page outside the cookie path, so login appears to succeed
and then every request is rejected.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
documentation Ready Ready Preview Sep 10, 2026 7:31pm UTC

Request Review

@github-actions github-actions Bot added pr: chore source: CMS internal PRs created by the Strapi core team labels Sep 10, 2026
@pwizla pwizla added the flag: merge pending release Waiting for the related product PR to be merged before merging this documentation PR label Sep 11, 2026

@pwizla pwizla left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, but I'll wait for the strapi/strapi PR to be merged before releasing this one

(By the way, new docs feature: when a strapi/strapi release includes the corresponding strapi/strapi PR, the flag: merge pending release label on this docs PR will be removed automatically ✨)

@pwizla pwizla self-assigned this Sep 11, 2026
@pwizla pwizla added this to the 7.2.0 milestone Sep 11, 2026
@pwizla

pwizla commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

(FYI: tentatively added to next week's docs milestone, hoping it will be merged for that date; if not I'll postpone it, no worries)

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

Labels

flag: merge pending release Waiting for the related product PR to be merged before merging this documentation PR internal PRs created by the Strapi core team pr: chore source: CMS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants