▲ | withinboredom 5 days ago | ||||||||||||||||||||||||||||||||||
And if I don't want any javascript to see my values, ever? Or how do you handle CSRF? | |||||||||||||||||||||||||||||||||||
▲ | 0x073 4 days ago | parent [-] | ||||||||||||||||||||||||||||||||||
Httponly cookie is the way, but then you just don't use json as cookie value that is send on every request. Csrf is no problem as the data from service worker is only active on the site itself. If you speak about csrf with a website where you can't trust js, you're site is broken as xhr/fetch use the same httponly cookies and is affected as well. | |||||||||||||||||||||||||||||||||||
|