question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automatic cookies

See original GitHub issue

Please feel free to correct me.

I’ve tried to use the fetch api to login against a service which sets a cookie in case of success.

The session cookie gets correctly set and subsequent requests to the same service pass authentication without me configuring anything at the code level, which makes me assume that cookies are automatically managed by the JavascriptCore runtime.

I can’t find a way to manipulate them though, is that by design?

As a side note, does this mean that I’m just better off using a different authentication flow?

Thanks for your work on this!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:24 (4 by maintainers)

github_iconTop GitHub Comments

10reactions
ms88privatcommented, Jul 6, 2016

I also want to find an easy solution to disable cookies at all.

4reactions
hbdcommented, Sep 6, 2016

@ms88privat @kristojorg by default, fetch() does not send cookies.

If you’re still having issues, you may want to try

fetch( ... {
...
credentials: 'omit'
})
Read more comments on GitHub >

github_iconTop Results From Across the Web

I don't care about cookies
Remove cookie warnings from almost all websites! ... anonymously or if you delete cookies automatically every time you close the browser.
Read more >
How to automatically accept or disable browser cookies ...
Tired of accepting or rejecting cookie notices on websites you visit? You can now use any of these 3 browser extensions to automatically...
Read more >
Automatic Data Collection Tools (Cookies, etc.) - Cisco
Cookies that only last as long as your browser is open are referred to as "session cookies." Session cookies are deleted automatically when...
Read more >
Super Agent - Automatic Cookie Consent
No more cookie pop-ups! Privacy can be simple. Super Agent is a browser extension that will auto-accept or reject cookies for you according...
Read more >
Ninja Cookie | Opt out of non-essential cookies and ...
Ninja Cookie is a browser extension that automatically removes cookie banners by rejecting the use of non-essential cookies.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found