How to know how to set cookies in JavaScript script?

Hi. For example there is here such code, when viewed through a sniffer, then when the script request is recaptcha_ajax happens with the cookies, which was not simple. How to find where are cookies if the whole script is obfuscated?

Demo Link: https://www.google.com/recaptcha/demo/ajax
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>reCAPTCHA</title>
<style type="text/css">
 body {
 font-family: Helvetica, sans-serif;
 color: #000000;
 font-size: 12px;
 border: none;
 background-color: transparent;
}
</style>

<form method="POST" action>

<script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
<script type="text/javascript">
 showRecaptcha function() {
 Recaptcha.create("6Ld4iQsAAAAAAM3nfX_K0vXaUudl2Gk0lptf3ref", 'captchadiv', {



 tabindex: 1,
 theme: "clean",
 callback: Recaptcha.focus_response_field
});
}
</script>
<div id="captchadiv"></div>
<input type="button" value="Click Me" onclick="showRecaptcha();">
<table cellspacing="0" cellpadding="4" border="0" style="font-family: Helvetica, sans-serif; color: #000000; font-size: 12px;"><tbody><tr><td><div><input type="submit" name="Button1" value="Submit"></div></td></tr></tbody></table></form>
September 26th 19 at 11:40
1 answer
September 26th 19 at 11:42
Looked at the code in http://jsbeautifier.org, like setting the cook is not in the js.
Maybe when you get https://www.google.com/recaptcha/api/js/recaptcha_...
If you watch the response, Fedorov set-cookie is not present. - francisco.Douglas commented on September 26th 19 at 11:45

Find more questions by tags JavaScriptComputer networksProgrammingSoftware