After using Nginx for my angular2 application, I made the decision to switch to the angular-CLI server. However, I am encountering difficulties with setting cookies.
Previously in Nginx, I utilized proxy_cookie_path to establish the cookie path. How can I accomplish 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/ /;
}
}
I am seeking guidance on how to implement this configuration in angular CLI.