119 questions
0 votes
0 answers
2k views
How to get values from cookies using angular?
I have a system on the Internet that enables me to add custom applications to it through a window within this system. When you enter this window, the user session hash will be sent to the URL of the ...
1 vote
2 answers
888 views
How to handle cookies on angular development server when getting info from another domain in Angular
I've got a server to which I need to make posts, get, etc. with HTTPClient. This host is example.com:8080, for example. It's a tomcat with JSESSIONID Java cookie. When I'm developing, I set the ...
0 votes
0 answers
54 views
Practices for handling variables in angular
Until now the output from all inputs, access tokens for authentication and conditionals were saved in cookies in the project that I started working on, so that they are easily accessible at the end of ...
1 vote
1 answer
177 views
In Angular 1.2.32 How can I set expiry to cookie?
I am using angular 1.2.32 in an old project and I need to know how can I set the expiry of cookie. I am using ngCookies for it and trying to set cookie using below line: $cookies.putObject("...
2 votes
0 answers
439 views
SCRIPT1002: Syntax error - IE11, problem with ngx-cookie-service with angular 8
I have a problem with IE11 when I inject 'CookieService' on the 'providers' of 'app.module.ts'. I got this message with freezing page on IE11: SCRIPT1002: Syntax error vendor.js (152116,1) It works ...
7 votes
2 answers
4k views
Angular 9 - ngx-cookie-service troubles with path
I'm using ngx-cookie-service package to store some data relevant to my application. I need to save this cookie on the base path '/', so each time I know exactly how to retrieve it. This cookie of mine ...
0 votes
1 answer
2k views
Setting cookie on an iframe website with ngx-cookie-service
When I embed a youtube video for example in my angular component: <iframe width="560" height="315" src="https://www.youtube.com/embed/w3jLJU7DT5E"></iframe>&...
1 vote
0 answers
354 views
Angular does not send HTTP Only Cookie
I have a small Angular 7 Application, which stores the JWT used for authentication in a HTTP ONLY cookie. The cookie gets issued by a Node.js Server. For some reason, the cookie gets stored in the ...
0 votes
0 answers
162 views
can't get key value from cookies though it was exist but invalid format
I am setting some key in $cookieStore like $cookieStore.put('temp',temp); and saved ok in cookies but some where some bites of key value are changed , so when $cookieStore.get('temp'); I get this ...
0 votes
0 answers
136 views
document.cookie or $cookies returning empty values intermittently in IE
In one of my applications observed that "document.cookie" or $cookies is returning empty values and i am unable to access cookies in code even though cookies are visible in the browser. Are there any ...
0 votes
0 answers
44 views
Angular2: Login with api fails to get data sometimes
I'm trying to login on web with authentication of token got from Web-API. I am saving the token in cookies and proceed my work. I want to ask that if i am login with admin on one tab and without ...
2 votes
1 answer
819 views
Using Cookies in angular Universal (for Angular 6 )
I am working on Angular 6 and have installed the Angular universal in it. I am having issues with package ngx-cookie-service as it is not supporting universal (check this issue for more info). Kindly ...
0 votes
0 answers
506 views
Read cookie in AngularJs, REST API
So, I created my client application using angular to interact with my WCF REST API. I basically use cookies to store the login session and retrieve the information by sessions. This works perfectly ...
7 votes
1 answer
2k views
Unable to read certain cookies
i am trying to read cookies from browser in order to setup an authguard. I am trying to check if cookies are setup then user is logged in otherwise not. For this purpose i am using ngx-cookie-service. ...
0 votes
1 answer
190 views
Custom directive not picking up model initialization
I have written a custom AngularJS directive that implements a toggle checkbox based on Bootstrap Toggle. I added support for angular-translate, but that is beyond my actual proplem. Furthermore, I ...