0

I need some help finding out why my code is running on Chrome and isn't on IE 11.

Here is my problem :

Using AngularJS and ngCookies I can set and get my cookies when I use Chrome. When I use IE 11, the code is not working the same. For example :

var myObject = { "prop" : "value" }
$cookies.put("MyCookie",JSON.stringify(myObject),{})
console.log(JSON.parse($cookies.get("MyCookie"))) // Syntax Error

The cookie is created since I can see it in network/cookies in developer tools But I can't read it , and I don't know why.

Is IE11 requiring the 3rd parameter of $cookies.put() to be filled with values ?

MackM
  • 2,906
  • 5
  • 31
  • 45
Sonny Jayet
  • 434
  • 2
  • 7
  • 24

0 Answers0