Hello.
I have problems to set the path of a cookie.
It does not work to set cookie path other than “/”.
document.cookie=“name=foo; path=‘/’”
I want to set it path=/bar. It will not work. The cookie dont appear in webstore (FF)/application store (Chrome).
And more “funny”:
when I start my app via URL: “https://host:8433/TTApp” than cookies are set to path “/”. And - thats what I want - they will be set with any http-resquest. E.g. to “http://host:post/TTAppBackend”.
But when starting the web app via “https://host/TTApp” (over proxy) than cookies are set with path “/TTApp”. And the will not sent when calling “https://host/TTAppBackend”. Same code!
What happens here? What do I wrong? What are the secrets of setting paths?
Thanks Thomas