node icon indicating copy to clipboard operation
node copied to clipboard

Node throwing js error when cookies are disabled

Open antipath opened this issue 10 years ago • 2 comments

Node seems to be throwing bunch of javascript error when user disables their cookies. Somehow the history/lib/DOMStateStorage.js is interfering with our site when it throws JS errors.

Are we able to put this block of code in the try/catch?

var json = window.sessionStorage.getItem(createKey(key));

Thanks, Vince

antipath avatar Mar 11 '16 15:03 antipath

This is almost certainly not an issue with Node. This question would be better suited for Stack Overflow.

cjihrig avatar Mar 11 '16 16:03 cjihrig

You're probably confusing something. Node.js does not deal with cookies. Browsers and things like Express do.

silverwind avatar Mar 11 '16 16:03 silverwind