Cursor login problem

I’m using Windows and can’t log in. I never had this problem before. But now I can’t log in. I log in to my account via the web. I open the cursor, select my account with the sign in button, and nothing happens.

Chrome is selected by default.
I don’t use a VPN.
I could log in before, but now I can’t. I’m sick and tired of this nonsense. Many people have encountered this problem, but there’s no solution. Yes, I even ran it as an administrator, but nothing changed. When are you going to fix this problem?!!!

Hey, try this solution:

1 Like

Nothing has changed, the same problem still persists.

I had the problem to connect to cursor app. I gave console error in chrome to grok and it give me a way to log in to cursor app. I change the dns as grok suggested me and finally I could log in to cursor app. I wanted grok to write the solution in english to share with you. here you are:

How to Fix Cursor App Login Issues Due to CORS and CSP Errors on Windows 11

If you’re trying to log in to the Cursor app and the browser login doesn’t sync with the app, you might encounter errors like CORS (Cross-Origin Resource Sharing) or Content Security Policy (CSP) violations in the browser console. These errors often involve blocked requests to domains like featureassets or prodregistryv2. Below is a detailed guide to resolve this issue, with a focus on the solution that worked: changing DNS settings to Cloudflare DNS (1.1.1.1 and 1.0.0.1) on Windows 11.

Problem Overview

The console errors typically include:

  • CORS Errors: Requests to featureassets/v1/initialize or prodregistryv2/v1/rgstr are blocked due to missing Access-Control-Allow-Origin headers.

  • CSP Violations: Connections to domains like cloudflare-dns or statsigapi are blocked by the CSP directive connect-src.

  • HTTP 403 Forbidden: Some requests return a 403 status, indicating server-side restrictions (e.g., IP blocking or authentication issues).

  • Statsig Errors: Networking errors from the Statsig service (used for feature flags and analytics) disrupt the login flow.

These errors prevent the browser from completing the authentication process, so the Cursor app cannot sync the login session. The issue may stem from network configurations, such as DNS, VPN, or proxy settings, or server-side misconfigurations.

Solution: Change DNS to Cloudflare DNS on Windows 11

The most effective fix for this issue is to change your DNS settings to Cloudflare DNS (1.1.1.1 and 1.0.0.1), which resolved the problem in this case. Follow these steps to update your DNS settings on Windows 11:

  1. Open Network Settings:

    • Click the Start button (Windows logo in the bottom-left corner).

    • Open Settings (gear icon) or search for Settings in the Start menu.

  2. Navigate to Network Settings:

    • In Settings, go to Network & internet.

    • Select Wi-Fi (if using Wi-Fi) or Ethernet (if using a wired connection).

  3. Select Active Connection:

    • For Wi-Fi: Click on the name of the Wi-Fi network you’re connected to (e.g., “MyWiFi”).

    • For Ethernet: Click on the Ethernet option.

  4. Edit DNS Settings:

    • In the network settings, scroll to Hardware properties or Adapter properties and click it.

    • Under DNS server assignment, click Edit.

    • In the pop-up, select Manual from the dropdown menu.

    • Turn on the IPv4 switch (leave IPv6 off for now, as most servers, including Cursor’s, primarily use IPv4).

  5. Set Cloudflare DNS:

    • In the Preferred DNS field, enter: 1.1.1.1

    • In the Alternate DNS field, enter: 1.0.0.1

    • Set DNS encryption to Unencrypted only (encrypted DNS like DoH may cause issues with some servers).

  6. Save Changes:

    • Click Save to apply the settings.

    • Disconnect and reconnect your Wi-Fi or Ethernet (or restart your PC) to ensure the new DNS is applied.

  7. Clear DNS Cache:

    • Open Command Prompt (search for cmd in the Start menu).

    • Run the following command to clear the DNS cache:

      cmd

      ipconfig /flushdns

      You should see: “Successfully flushed the DNS Resolver Cache.”

  8. Verify DNS Settings:

    • In Command Prompt, run:

      cmd

      nslookup google.com

      Confirm that the DNS servers listed are 1.1.1.1 and 1.0.0.1.

    • Open your browser and try logging into Cursor again, either through the app or browser.

Why This Works

Using Cloudflare DNS (1.1.1.1 and 1.0.0.1) resolves potential issues with your ISP’s default DNS, which might be slow, misconfigured, or blocked by certain servers. This change ensures reliable name resolution for domains like featureassets and prodregistryv2, bypassing network-related CORS errors.

Additional Troubleshooting Steps

If the DNS change doesn’t fully resolve the issue, try these steps:

  1. Disable VPN/Proxy:

    • If you’re using a VPN or proxy, disable it, as some servers may block specific IP ranges, causing CORS or 403 errors.
  2. Test in Another Browser:

    • Try a different browser (e.g., Firefox or Edge) or use Chrome’s Incognito mode to rule out extension or cache issues.

    • Clear browser cache in Chrome: Settings > Privacy and Security > Clear Browsing Data > Cached Images and Files.

  3. Update Cursor App:

    • Ensure you’re using the latest version of the Cursor app. Download it from cursor if needed.

    • Check if the app offers direct login (e.g., email/password or QR code) instead of relying on browser authentication.

  4. Check Firewall/Antivirus:

    • Temporarily disable Windows Firewall or antivirus software to ensure they’re not blocking requests to …

      cmd

      netsh advfirewall set allprofiles state off

      Re-enable it after testing with state on.

  5. Contact Cursor Support:

    • If the issue persists, the CORS and CSP errors likely stem from server-side misconfigurations. Email Cursor support at and include the console errors (e.g., CORS blocks on featureassets and prodregistryv2).

Optional: Test API Connectivity

To confirm whether the issue is network-related or server-side, you can test connectivity to Cursor’s API endpoints using this JavaScript snippet in your browser’s console:

javascript

async function testApiConnection() {

try {

const response = await fetch('featureassets/v1/initialize?k=client-H62O2c4oii63h2bDKV7YVbJtdu6iDbGy59PVEugQoKp&st=javascript-client&sv=3.20.2', {

method: 'GET',

headers: {

'Content-Type': 'application/json',

},

});

if (response.ok) {

console.log('API connection successful:', await response.json());

} else {

console.error('API connection failed:', response.status, response.statusText);

}

} catch (error) {

console.error('Network error:', error.message);

}

}

testApiConnection();

If you get a CORS or 403 error, the issue is likely server-side, and you should report it to Cursor support.

Final Notes

Changing your DNS to Cloudflare’s 1.1.1.1 and 1.0.0.1 resolved the login issue in this case. If you encounter similar CORS or CSP errors with the Cursor app, start with this DNS change, clear your DNS cache, and test again. If the problem persists, reach out to Cursor’s support with detailed error logs. For further assistance, share details like your app version, browser, or network setup in the comments below.