I have an application with Angular as the Front end and .net framework 4.7 C# web api as the server side. This is hosted in IIS 10. Now our customer wants to add HttpOnly Flag in the Set-Cookie in the Response Header. When i check the Response Header in the Chrome Dev tools, i could see the below cookie:
Set-Cookie: NSC_mcwt_updpnqfuf-quf_________Jou_=ffffffff09ee746d45525d5f4f58455e445a4a423660;expires=Fri, 15-Nov-2019 06:52:47 GMT;path=/;secure
Now i want to append the "HttpOnly" flag in the existing cookie. So i try to add a cookie using the Rewrite module in the web.config file and it is creating a new Set-Cookie with HttpOnly flag. But I just want to append in the existing Set-Cookie header itself.
Do i need to change anything in the Web.Config file to append the HttpOnly flag or do any change needed in the angular UI side?