Use a fetch request to set a cookie.
fetch-cookie by
javascript-cookie
example-b
samesite-b
samesite-a
private-state-token-issuer-v1
3pc