About - Why - How - Usage - License
Warning This is a dangerous way to get cookies, any program listening in port 5566 can request the cookies sent by extension too.
So don't forget to disable the extension after use!
Have you ever needed to get httpOnly
cookies to use in your application?
No? Doesn't matter, this library gives you this power!
It gets all cookies from all Firefox containers too! :D
This is needed to interface with authentication in some websites.
Currently, you can see this library used in thisago/clibard
It will start an HTTP server that waits the extension requests the website which you want the cookies and send to server the wanted cookies.
When the server receives the cookies, it closes itself and return the cookie for you!
Tou need to install the client extension: In Firefox
Note Firefox automatically deletes on close. More secure
Warning The client extension doesn't works when
privacy.firstparty.isolate
is enabled atabout:config
at Firefox.
- Go to
about:debugging#/runtime/this-firefox
- Click in "Load Temporary Add-on..."
- Select the file: client/extension/manifest.json
In Chrome
- Go to
chrome://extensions
- Activate "Developer mode"
- Click "Load unpacked"
- Select client/extension dir
Note Don't forget to keep your browser open! :)
The usage is pretty simple
let cooked = iecook "https://google.com"
It returns to you a seq[IeCook]
This library is FOSS, licensed over MIT license!