xdomain icon indicating copy to clipboard operation
xdomain copied to clipboard

Does this library still work in 2021?

Open taewookim opened this issue 4 years ago • 1 comments

Safari is blocking all 3rd party cookies.. and Google is following something similar.

Only way i can think of is wrapping JS inside a subdomain via cname.

Ie... serving.com/pixel.js lives on customersite.com

So customer creates "serving.customersite.com" cname, and points it to serving.com

Now "serving.customersite.com/pixel.js" is not considered 3rd party.

Am I correct on this assumption?

taewookim avatar Sep 15 '21 14:09 taewookim

It works but you can’t rely on cookies, you must use a bearer token of some form

On Thu, 16 Sep 2021 at 12:27 am TaeWoo Kim @.***> wrote:

Safari is blocking all 3rd party cookies.. and Google is following something similar.

Only way i can think of is wrapping JS inside a subdomain via cname.

Ie... https://serving.com/pixel.js lives on customersite.com

So customer creates "serving.customersite.com" cname, and points it to serving.com

Now "serving.customersite.com/pixel.js" is not considered 3rd party.

Am I correct on this assumption?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jpillora/xdomain/issues/222, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE2X434SXRUJ3PWOJIAIT3UCCUOPANCNFSM5ECSWOEQ .

jpillora avatar Sep 15 '21 19:09 jpillora