+ 7
Is there a way to use JS cookies in on Sololearn?
I've tried to add a save function to a game, but I'm unable to use JS cookies: I get a access denied Error instead... Is there an other way of creating cookies in JS or could I possibly use another language for that? //Edit: This is the Code I used: var cookie = document.cookie;
4 Réponses
+ 5
It is a chrome bug. Sololearn use chrome JavaScript engine to run JavaScript program. Thats why it show you that error. Also you cannot use navigator api of html5. Because Chrome only support that for secure connection that is https. I have use simple code, here it is
document.cookie="name=aditya";
alert(allcookies);
Use this below url, maybe it can help you
https://github.com/rshf/chromedriver/issues/728
+ 4
wow, I just posted a very very similar question. I will let you know if I find any info
+ 4
https://www.w3schools.com/js/js_cookies.asp <--- read up, found extremely useful
+ 1
window.cookie doesnt seem to bring up an error, while document.cookie does...