Hacker News new | ask | show | jobs
by hansen 2990 days ago
> enhance the user experience

Sorry, but this made me laugh.

> whats the alternative to 3rd party cookies?

Don't use a 3rd party service.

1 comments

yes, saving user progress is enhancing their experience. you hear 3rd party and immediately think its bad.

> Don't use a 3rd party service.

I knew someone would say this, as if I had unlimited dev time.

The third party service can provide you with some JavaScript you inject into your website. It stores cookies on your domain instead of a third party one.
Which of course begs the question should third party scripts be allowed to run?
You don't need cross-origin scripts for this: you can host it yourself.

If you were to disallowed loading scripts cross-origin, everyone would just end up creating subdomains for everything you wanted to load, which would be worse security-wise I bet, as you'd lose some of the cross origin security features we have today.

You shouldn't use the term enhancing user experience. It’s a synonym for doing something against the interest of the user.