I have been using Nginx for my angular2 application. now I decided to migrate to the angular-CLI server. I am facing issues with setting cookies
In Nginx, I use proxy_cookie_path to define cookie path. how to do this in angular CLI
server {
listen 80;
server_name "a2distribution-local.com";
location / {
root /Users/mypc/Documents/angular2Distribution/ ;
try_files $uri $uri/ /index.html =404;
}
location /rest/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:8080/cloudface/;
proxy_cookie_path /cloudface/ /;
}
}
How to achieve this configuration in angular CLI.