Browser

Set a cookie

Sets a cookie on the attached page via CDP Network.setCookie.

post/v1/browser/storage/cookie

Request

  • Base URL: http://localhost:9998
  • URL: http://localhost:9998/v1/browser/storage/cookie
  • Auth: HTTP bearer

Request body

namestring required
valuestring required
domainstring
urlstring
pathstring
httpOnlyboolean
secureboolean
sameSite'Strict' | 'Lax' | 'None'
expiresnumber

Unix timestamp for cookie expiration

Response

Cookie set

successtrue required

Changes

No recorded changes to this operation across all 1 revision of this API.