Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fetching path specific cookie on pushState

I guess this is possible, but is there any way of fetching pathspecific cookies (ones set with path=/XXX), when navigating as a onepageapp with window.history.pushState, to that new path?

like image 329
Kasper Rynning-Tønnesen Avatar asked Mar 20 '26 04:03

Kasper Rynning-Tønnesen


1 Answers

This doesn't seem like a possible thing to do, since you're not fetching a new page technically from the server, so the cookies won't be accessible.

like image 190
Kasper Rynning-Tønnesen Avatar answered Mar 21 '26 16:03

Kasper Rynning-Tønnesen