Where does the bug appear (feature/product)?
Built-in Browser / Glass / Agents Window + Design Mode
Describe the Bug
Login in the Cursor built-in browser always fails against an ASP.NET Core IdentityServer with the CSRF error page (/error/csrf — “There was a problem with the form you submitted”), even with correct credentials and a fresh form.
The same OIDC login flow works in Google Chrome.
This is not a missing IdentityServer / IdP client configuration issue. Chrome proves the IdP setup is fine. No window.open popup OAuth is involved — this is a normal full-page redirect + form POST login.
Expected: Top-level navigation to IdentityServer should accept Set-Cookie (including HttpOnly + SameSite=Strict antiforgery cookies), send them on the login POST, and complete OIDC back to the local app (https://localhost:…/signin-oidc). Design Mode should then work on the authenticated local app.
Actual:
- Login form POST → CSRF error
- Session / antiforgery cookies for the IdentityServer host are not reliably stored or sent in the Cursor Browser cookie jar
- Simple
document.cookiewrites can work, but serverSet-Cookiefor HttpOnly/Strict cookies does not behave like Chrome - CDP cookie APIs (
Network.getCookies/Network.setCookie/Storage.clearDataForOrigin) are denied — agents cannot repair the session - Writing cookies into
~/.config/Cursor/Partitions/cursor-browser/Cookiesdoes not affect the live Glass browser session
Steps to Reproduce
- Run a local HTTPS app that challenges OIDC to an ASP.NET Core IdentityServer (antiforgery cookies with
SameSite=Strict; Secure; HttpOnly). - Open
https://localhost:<port>/in Cursor Browser. - On the IdentityServer login page, submit username/password.
- Observe redirect to
/error/csrf. - Repeat in Chrome with the same URL → login succeeds.
Expected Behavior
First-party top-level navigations in the built-in browser should persist and send cookies like Chromium/Chrome (including HttpOnly + SameSite=Strict), so standard enterprise OIDC form login and Design Mode work.
Screenshots / Screen Recordings
N/A (CSRF error page on IdentityServer after login POST)
Operating System
Linux (Ubuntu 24.04)
Version Information
Cursor 3.17.19 (Linux x64)
Regression note: login in Cursor Browser worked ~1–2 weeks ago. This machine upgraded through 3.16.x → 3.17.19 in that window (Glass / Agents Window changes).
Additional Information
Impact: Design Mode is unusable for authenticated enterprise apps behind OIDC/CSRF login. Related community reports cover popup OAuth (Google/MSAL); this report is specifically redirect-based form login + SameSite=Strict antiforgery cookies.
Please treat cookie persistence/sending in the built-in browser as a regression and align with Chrome for first-party top-level navigations. Optionally expose safe CDP cookie APIs for the embedded browser so agents can diagnose/fix sessions.