▲ | 0x073 4 days ago | |||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||
▲ | withinboredom 4 days ago | parent [-] | |||||||||||||||||||||||||
Since when can you trust js? | ||||||||||||||||||||||||||
|