Skip to content

Fix 'trusted-set-cookie' — cannot set cookie if name has '__Secure-' prefix #448

@AdamWr

Description

@AdamWr

Related issue - AdguardTeam/AdguardFilters#187095

I'm trying to set my country on Hetzner via scriptlet but it seems the scriptlet is buggy.
hetzner.com#%#//scriptlet('trusted-set-cookie-reload','__Secure-Hetzner_CountryCode','ot') adds the cookie but it gets overridden by default setting (DE) while
hetzner.com#%#//scriptlet('trusted-set-cookie-reload','__Secure-Hetzner_CountryCode','ot') causes a reload loop on the website.

It looks like that cookie name with __Secure- prefix (the same for __Host-) requires secure flag otherwise it will be not set.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#attributes

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions