Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authenticate without using a cookie in ServiceStack

Tags:

servicestack

I'm using ServiceStack to write a REST based service, but as part of the authentication, I need to authorize cross-domain, but cookies can't be read cross-domain, so even though my JSON POST to the authenticate service succeeds and returns the SetCookie results, it will never see that cookie as it can't see it.

Question is, is there any other way around this, maybe I can provide the same value via a request header or something?

like image 871
dariusriggins Avatar asked Feb 04 '26 22:02

dariusriggins


1 Answers

You can pass cookies in a cross domain request if both the client and the receiver allow it. Have a look at this link here

like image 95
Bigtoe Avatar answered Feb 13 '26 06:02

Bigtoe