Hi, can I send cross domain cookie to verify a ses...
# support-questions
s
Hi, can I send cross domain cookie to verify a session?
r
Hey!
Hey!
s
HI
r
So the websiteDomain and apiDomain don't share any common domain?
s
Yes, both are different
r
So you can give that setting in the backend SDK and it should automatically put the sameSite cookie setting to "none", and then it would work
What config have you provided in the backend SDK supertokens.init?
Whats the value of:
Copy code
apiDomain: "XXX",
websiteDomain: "XX",
s
Copy code
apiDomain: "api.tidyhire.app",
        websiteDomain: "https://beta.tidyhire.app",
r
right. So this is not really a cross site issue since they both share the "tidyhire.app" part
On the frontend, are you adding interceptors to axios?
s
Actually I am trying to make an api call through a chrome extension from a different domain
r
i mean supertokens interceptors
hmmm
so then in the Session.init part, you can set cookieSameSite: "none"
this should allow the cookies to be sent
s
okay
Let me try
Thank you 😄
Cookie has been set
But, I am getting cors issue
r
hmm
well, you also wanna add
https://www.linkedin.com
to the array
and not just
https://linkedin.com
s
It's already in that array
r
s
oh okay
r
the www is important
s
tried this with https://www.linkedin.com
still no luck
r
whats the error?
and what is the response from the OPTIONS API headers?
s
it's working now
it was a typo
r
cool