Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_getRawCookieString() {
const { cookie } = this.state;
if (!cookie) {
return '';
}
try {
return cookieToString(toughCookie.Cookie.fromJSON(JSON.stringify(cookie)));
} catch (err) {
console.warn('Failed to parse cookie string', err);
return '';
}
}
{cookies.map((cookie, i) => {
const cookieString = cookieToString(toughCookie.Cookie.fromJSON(cookie));
return (
{cookie.domain || ''}
{cookieString || ''}
<button> handleShowModifyCookieModal(cookie)}
title="Edit cookie properties">
Edit
</button>{' '}