Add cookie in Chrome
Question:
How to add cookie in Chrome? Answer:
document.cookie="LogLevel=warning;expires=Thu, 05 Oct 2021 00:00:01 GMT;";
Description:
Probably the fastest way to add a new cookie is using the browser's console and just execute the command:
document.cookie="COOKIE_KEY=COOKIE_VALUE";
or with expiration date
document.cookie="COOKIE_KEY=COOKIE_VALUE; expires=EXPIRE_DATE";
Reference:
Chrome console reference
Share "How to add cookie in Chrome?"
Related snippets:
Tags:
add cookie in chrome, add new cookie, chrome console, chrome devtool Technical term:
Add cookie in Chrome