I have a very basic requirement to expire httpOnly cookie. Currently I am using Angular and I know it is not possible to access httpOnly cookies from client side code. So I was researching and I found Angular Universal which renders on server side. So is it possible to implement this functionality using Universal? and is it possible to keep only the cookie expiration logic on SSR while other component/module on CSR? I need to create a /logout route which will execute the cookie expiration logic. I know it a lot of ask. But if at least I get a away or directly it would be helpful. I am trying to implement logout functionality in ALB and Cognito based authentication. I am trying avoiding amplify as it is a paid service.
Few reference link: For angular universal cookie handling: https://davidsekar.com/angular/set-cookie-in-angular-universal-during-ssr
Signout in ALB (but here its asp.net app but in my case FE- Angular and BE spring boot are hosted separetly: https://medium.com/@bobtomlin_70659/signing-out-of-an-alb-web-application-e464723ac6d8