Skip to content

Is there any way to set cookie on Browser which restrict cookie by default, without hosting frontend by myself? #620

@danielbatch

Description

@danielbatch

I’m trying to set cookie on Browser when signed in by email/password, returning this Set-Cookie response header, referring this doc.
https://discovery.viron.plus/docs/Advanced-Guides/authentication#cookie

auth_key=eyxxxxxxxxxxxxxxxxxxxxxx0A; Path=/; HttpOnly; SameSite=None;

And this cookie is set only in “MacOS, Google Chrome” environment.

Name: auth_key
Value: eyxxxxxxxxxxxxxxxxxxxxxx0A
Domain: myApiServerDomain
Path: /
Expires: session
HttpOnly: true
Secure: true
SameSite: none

Is there any way to set cookie on other Browser which is frequently used and restrict cookie by default, like Desktop Safari, SP Safari, Chrome?

I want to set cookie on following environments without hosting viron by myself, nor changing Browser default settings.

Investigated these envs,

PC

MacOS, Google Chrome, 103.0.5060.114(Official Build) (arm64)
Default cookie setting: “blocks 3rd party cookie on secret browsing”
=> cookie is set.

Safari, 14.1.2 (16611.3.10.1.6)
Default cookie setting: “blocks CROSS-SITE TRACKING”
=> cookie is not set

SP

iOS15.5, Google Chrome, 103.0.5060.63
Default cookie setting: “blocks CROSS-SITE TRACKING”
=> cookie is not set

iOS15.5, Safari, 604.1
Default cookie setting: “blocks CROSS-SITE TRACKING”
=> cookie is not set

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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