Determining the source of a cookie that has javascript or tracking pixel

I need to identify and determine the source of cookies. While many cookies get to the browser in the HTTP response on the original page, others are added to the browser through javascript or via objects loaded onto the page using http (e.g. tracking pixels or AJAX calls).

What is a good way to determine / determine the source of each cookie?

+6
source share
1 answer

Open the development console in a browser and save the link to the source file get.cookie / setter. After that, redefine document.cookie getter / setter with your own function, where you can enable console.log ('create cookie:' + value) and then call the built-in getter / setter inside that function. See the following link for sample code: Cookie Monster

0
source

Source: https://habr.com/ru/post/989428/


All Articles