Hey, please don't do this! Your cookie token is actually ephemeral. You have a permanent upload key assigned to your account. Download the ShareX config from Settings > General > App Configuration.
So it works basically the same as mine but instead of the shitty cookie workaround I did, you have a header called "Authorization": "Bearer xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" that won't blow up in my face every few weeks
Very nice