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.

getCookie issue with 0.1.8 using Http

See original GitHub issue
ORIGINAL EXCEPTION: Error: not implemented
ORIGINAL STACKTRACE:
Error: not implemented
    at NativeScriptDomAdapter.Parse5DomAdapter.getCookie (/data/data/org.nativescript.nativescriptweather/files/app/tns_modules/@angular/platform-server/src/parse5_adapter.js:612:68)

Fixed by https://github.com/NativeScript/nativescript-angular/pull/286

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
vakrilovcommented, Jun 24, 2016

Btw, the quick and dirty workaround until the fix is live is to add the not implemented method(somehere in the main.ts):

// HACK - patch dom adapter
import {Parse5DomAdapter} from '@angular/platform-server/src/parse5_adapter';
(<any>Parse5DomAdapter).prototype.getCookie = function (name) { return null; };
Read more comments on GitHub >

github_iconTop Results From Across the Web

set-cookie header not working - Stack Overflow
I am using SetCookie (or rather, gorilla/sessions is). It wasn't an issue w/ how to set it, it was an issue of why...
Read more >
getCookie | API Reference - Nightwatch.js
Retrieve a single cookie visible to the current page. The cookie is returned as a cookie JSON object, as defined here. Uses cookie...
Read more >
A practical, Complete Tutorial on HTTP cookies
Learn how HTTP cookies work: simple, practical examples with JavaScript and Python.
Read more >
XSS cookie stealing without redirecting to another page
This is nice and compact, but the problem is that it will recursively trigger the onerror handler unless an image is served from...
Read more >
axios get cookie from request - You.com | The AI Search ...
If you are making a same origin request you could set it via document.cookie , otherwise you will have to make an HTTP...
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