Skip to content

Third-Party Cookies Blocked in Safari, Preventing Copilot Usage #2013

@haidersultancrewlogix

Description

@haidersultancrewlogix

Description

Safari blocks third-party cookies by default, which prevents Copilot from functioning properly. The issue also occurs in Chrome's Private mode and when the "Block Third-Party Cookies" option is enabled in any browser.

Steps to Reproduce

  1. Enable authentication on the Chainlit backend.
  2. Embed Copilot on an HTML page.
  3. Open the page in Safari, a Private tab in Chrome, or any browser with "Block Third-Party Cookies" enabled.
  4. Check the /jwt API response.
  5. Error Message:
    "This attempt to set cookie via Set-Cookie header was blocked due to user preferences."

Expected Behavior

The UI should display a clear message prompting users to allow third-party cookies instead of showing a blank screen.

Actual Behavior

  • Blank screen with no error message or instructions.
  • Error occurs while setting a cookie via the /jwt API.

Screenshots

Blank Screen (No Error Message or Guide):
Image

Error while setting cookie:
Image

Environment Details

Desktop:

  • OS: Ubuntu / Windows / macOS
  • Browser: Chrome / Firefox / Safari
  • Version: All versions

Smartphone:

  • Device: Android / iPhone
  • Browser: Chrome / Firefox / Safari
  • Version: All versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    authPertaining to authentication.bugSomething isn't workingkeep-for-a-whileDon’t mark as stale. This label should be used only for confirmed bugs or other important thingsneeds-triagestaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions