{
"url": "https://github.com/",
"finalUrl": "https://github.com/",
"statusCode": 200,
"redirectChain": [
{
"url": "https://github.com/",
"statusCode": 200,
"cookieCount": 3
}
],
"cookieCount": 3,
"grade": "A+",
"score": 99,
"summary": {
"errors": 0,
"warnings": 0,
"infos": 3
},
"cookies": [
{
"name": "_gh_sess",
"valueLength": 354,
"valuePreview": "55D…",
"attributes": {
"domain": null,
"path": "/",
"expires": null,
"maxAge": null,
"secure": true,
"httpOnly": true,
"sameSite": "Lax",
"partitioned": false,
"priority": null
},
"prefix": null,
"lifetime": {
"type": "session",
"seconds": null,
"source": null
},
"deletion": false,
"sizeBytes": 362,
"issues": [],
"score": 100,
"grade": "A+",
"setBy": {
"hop": 1,
"url": "https://github.com/",
"statusCode": 200
}
},
{
"name": "_octo",
"valueLength": 27,
"valuePreview": "GH1…",
"attributes": {
"domain": ".github.com",
"path": "/",
"expires": "2027-10-12T16:56:41.000Z",
"maxAge": null,
"secure": true,
"httpOnly": false,
"sameSite": "Lax",
"partitioned": false,
"priority": null
},
"prefix": null,
"lifetime": {
"type": "persistent",
"seconds": 31536000,
"source": "expires"
},
"deletion": false,
"sizeBytes": 32,
"issues": [
{
"severity": "info",
"code": "domain_leading_dot",
"message": "A leading dot in Domain is ignored by modern browsers (RFC 6265 section 5.2.3); it can be removed."
},
{
"severity": "info",
"code": "httponly_missing",
"message": "The cookie has no HttpOnly attribute, so scripts can read it. Fine if JavaScript needs it; otherwise add HttpOnly."
}
],
"score": 98,
"grade": "A+",
"setBy": {
"hop": 1,
"url": "https://github.com/",
"statusCode": 200
}
},
{
"name": "logged_in",
"valueLength": 2,
"valuePreview": "…",
"attributes": {
"domain": ".github.com",
"path": "/",
"expires": "2027-10-12T16:56:41.000Z",
"maxAge": null,
"secure": true,
"httpOnly": true,
"sameSite": "Lax",
"partitioned": false,
"priority": null
},
"prefix": null,
"lifetime": {
"type": "persistent",
"seconds": 31536000,
"source": "expires"
},
"deletion": false,
"sizeBytes": 11,
"issues": [
{
"severity": "info",
"code": "domain_leading_dot",
"message": "A leading dot in Domain is ignored by modern browsers (RFC 6265 section 5.2.3); it can be removed."
}
],
"score": 99,
"grade": "A+",
"setBy": {
"hop": 1,
"url": "https://github.com/",
"statusCode": 200
}
}
],
"cached": false,
"checkedAt": "2026-10-12T16:56:41.406Z"
}
curl --location --request GET 'https://zylalabs.com/api/14204/set-cookie+analyzer+api/35259/analyze+the+set-cookie+headers+of+a+url' --header 'Authorization: Bearer YOUR_API_KEY'
{
"cookieCount": 3,
"grade": "D",
"score": 66,
"summary": {
"errors": 2,
"warnings": 4,
"infos": 5
},
"assumptions": {
"https": true,
"host": null,
"note": "Parsed offline. Secure checks assume the cookie was served over HTTPS (set \"https\": false to change); Domain checks run only when \"host\" is given."
},
"cookies": [
{
"name": "__Host-id",
"valueLength": 1,
"valuePreview": "…",
"attributes": {
"domain": "a.com",
"path": null,
"expires": null,
"maxAge": null,
"secure": false,
"httpOnly": false,
"sameSite": null,
"partitioned": false,
"priority": null
},
"prefix": "__Host-",
"lifetime": {
"type": "session",
"seconds": null,
"source": null
},
"deletion": false,
"sizeBytes": 10,
"issues": [
{
"severity": "error",
"code": "host_prefix_violation",
"message": "A __Host- cookie requires the Secure attribute, Path=/, no Domain attribute (RFC 6265bis section 4.1.3.2); browsers reject it otherwise."
},
{
"severity": "warning",
"code": "secure_missing",
"message": "The cookie has no Secure attribute although it was served over HTTPS, so browsers may also send it over plain HTTP."
},
{
"severity": "info",
"code": "httponly_missing",
"message": "The cookie has no HttpOnly attribute, so scripts can read it. Fine if JavaScript needs it; otherwise add HttpOnly."
},
{
"severity": "info",
"code": "samesite_missing",
"message": "No SameSite attribute: browsers default to Lax (Chrome, Edge, Firefox in some modes). State the intent explicitly with SameSite=Lax, Strict or None."
}
],
"score": 63,
"grade": "D"
},
{
"name": "s",
"valueLength": 1,
"valuePreview": "…",
"attributes": {
"domain": null,
"path": null,
"expires": null,
"maxAge": null,
"secure": false,
"httpOnly": false,
"sameSite": "None",
"partitioned": false,
"priority": null
},
"prefix": null,
"lifetime": {
"type": "session",
"seconds": null,
"source": null
},
"deletion": false,
"sizeBytes": 2,
"issues": [
{
"severity": "error",
"code": "samesite_none_requires_secure",
"message": "SameSite=None requires the Secure attribute; Chrome, Firefox and Safari reject the cookie otherwise (RFC 6265bis section 4.1.2.7)."
},
{
"severity": "warning",
"code": "secure_missing",
"message": "The cookie has no Secure attribute although it was served over HTTPS, so browsers may also send it over plain HTTP."
},
{
"severity": "info",
"code": "httponly_missing",
"message": "The cookie has no HttpOnly attribute, so scripts can read it. Fine if JavaScript needs it; otherwise add HttpOnly."
}
],
"score": 64,
"grade": "D"
},
{
"name": "t",
"valueLength": 1,
"valuePreview": "…",
"attributes": {
"domain": null,
"path": null,
"expires": null,
"maxAge": 99999999,
"secure": false,
"httpOnly": false,
"sameSite": null,
"partitioned": false,
"priority": null
},
"prefix": null,
"lifetime": {
"type": "persistent",
"seconds": 99999999,
"source": "max-age"
},
"deletion": false,
"sizeBytes": 2,
"issues": [
{
"severity": "warning",
"code": "lifetime_exceeds_400_days",
"message": "The lifetime is about 1157 days; Chrome caps cookie lifetime at 400 days (RFC 6265bis section 5.5), so it will be truncated."
},
{
"severity": "warning",
"code": "secure_missing",
"message": "The cookie has no Secure attribute although it was served over HTTPS, so browsers may also send it over plain HTTP."
},
{
"severity": "info",
"code": "httponly_missing",
"message": "The cookie has no HttpOnly attribute, so scripts can read it. Fine if JavaScript needs it; otherwise add HttpOnly."
},
{
"severity": "info",
"code": "samesite_missing",
"message": "No SameSite attribute: browsers default to Lax (Chrome, Edge, Firefox in some modes). State the intent explicitly with SameSite=Lax, Strict or None."
}
],
"score": 78,
"grade": "C"
}
],
"checkedAt": "2026-10-12T16:57:50.219Z"
}
curl --location --request POST 'https://zylalabs.com/api/14204/set-cookie+analyzer+api/35260/analyze+pasted+set-cookie+header+text+offline' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"headers":"Set-Cookie: __Host-id=1; Domain=a.com\nSet-Cookie: s=1; SameSite=None\nSet-Cookie: t=1; Max-Age=99999999"}'
Após se cadastrar, cada desenvolvedor recebe uma chave de acesso à API pessoal, uma combinação única de letras e dígitos para acessar nosso endpoint de API. Para autenticar com a Analisador de Set-Cookie API basta incluir seu token Bearer no cabeçalho Authorization.
| Cabeçalho | Descrição |
|---|---|
Authorization
|
Obrigatório
Deve ser Bearer access_key. Veja "Sua chave de acesso à API" acima quando você estiver inscrito.
|
Sem compromisso de longo prazo. Faça upgrade, downgrade ou cancele a qualquer momento. O teste gratuito inclui até 50 requisições.
O endpoint GET retorna um objeto JSON contendo os resultados da análise de cookies, incluindo a URL final, código de status, cadeia de redirecionamento, contagem de cookies, nota, pontuação e atributos detalhados de cookies O endpoint POST retorna dados semelhantes, mas foca nos cabeçalhos Set-Cookie fornecidos, incluindo erros, avisos e atributos de cookies
Os campos principais incluem `url`, `finalUrl`, `statusCode`, `cookieCount`, `grade`, `score` e `cookies`. Cada objeto de cookie contém atributos como `name`, `valueLength`, `valuePreview` e flags como `secure`, `httpOnly` e `sameSite`
Os dados retornados estão no formato JSON A estrutura inclui um objeto de nível superior com informações resumidas e um array de objetos de cookies cada um detalhando atributos e questões de conformidade Por exemplo o array `cookies` contém detalhes de cookies individuais como `name` `valueLength` e `attributes`
O endpoint GET fornece atributos de cookie, notas de conformidade e análise de redirecionamento O endpoint POST oferece insights sobre os cabeçalhos Set-Cookie fornecidos, incluindo erros e avisos relacionados a atributos de cookie e conformidade com padrões
Os dados da resposta estão organizados em um objeto principal contendo informações resumidas e um array de cookies Cada objeto de cookie inclui seus atributos e status de conformidade permitindo que os usuários avaliem facilmente a segurança dos cookies e a adesão aos padrões
Os dados são originados das respostas HTTP recebidas durante a análise da URL especificada ou dos cabeçalhos Set-Cookie fornecidos A API segue a RFC 6265 e as melhores práticas para avaliar os atributos dos cookies e a conformidade
Casos de uso típicos incluem auditoria da segurança de cookies para aplicações web garantindo conformidade com os padrões de cookies e identificando potenciais vulnerabilidades nas configurações de cookies Os desenvolvedores podem integrar essa análise em pipelines de CI/CD para verificações automatizadas
Os usuários podem personalizar solicitações especificando o parâmetro `fresh` no endpoint GET para ignorar resultados em cache. No endpoint POST, os usuários podem fornecer cabeçalhos Set-Cookie personalizados em vários formatos, permitindo uma análise adaptada de cookies específicos