0

I use ngx-cookie-service from Angualr to get cookie values, but it doesn`t return few cookie values, This is the image of I have tried

You might have noticed it retrieves QSTIDDUP and it doesn`t retrieve QSTID

Dont know whats the reasons, kindly help.

Pavan Jadda
  • 4,306
  • 9
  • 47
  • 79
mano manoj
  • 235
  • 1
  • 5
  • 15

1 Answers1

2

the cookie is sourced from another domain, you wouldnt have access to it directly from within your script.

jcuypers
  • 1,774
  • 2
  • 14
  • 23
  • but I need it, is there any way – mano manoj Mar 21 '19 at 10:48
  • most probably there are some crazy ways to do this, but the general idea is that it's not possible due to security reasons. just search a bit on 'accessing cookies from other domains javascript' and you will get the idea :) – jcuypers Mar 21 '19 at 10:51