K
K
kommov2021-10-18 06:25:49
HTTP Cookies
kommov, 2021-10-18 06:25:49

How to fill in missing cookie keys during import?

A very unusual problem arose. You need to import cookies into the browser. If you import through various extensions, then parameters such as secure, httpOnly, hostOnly are null, because they are not present in the source data. An invalid httpOnly = true/false value alone can invalidate the cookie by putting a dot in front of domain. Because of this, the site does not accept cookies, or swears. But at the same time, if cookies are uploaded through specialized browsers, then all these keys are filled in correctly, according to some strict logic, depending on the name field. Question. Where is this data coming from? Maybe there is some kind of base where the default parameters are determined by the standard name keys, for secure / httpOnly / hostOnly? I even found some bibl on github, with a description of each name of all kinds of cookies, but the data I need is not there.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question