How to update Set-Cookie details - WeOnlyDo Discussion board

How to update Set-Cookie details (wodWebServer / wodWebServer.NET)

by Balaji Remala, Tuesday, December 19, 2023, 13:18 (130 days ago) @ Jasmine

Hi.

Please request update and try it out. Version property should return 1.7.2. You should add code like this to achieve what you need:


Private Sub Web1_ResponseHeaders(ByVal User As WODWEBSERVERCOMLib.IWebUser)
User.Response.Headers("Set-Cookie").Value = User.Response.Headers("Set-Cookie").Value + "; HttpOnly"
End Sub

Of course, add little sanity checking inside, just in case.

Let me know if this works ok for you!

Jasmine

Hi Jasmine,
Thank you for your support.
wodWebServerCom Version is 1.7.0.364.
I am using IwodWebNotify events. I have not found IwodWebNotify_ResponseHeaders event.
There is only IwodWebNotify_ResponseDone, IwodWebNotify_RequestDone and IwodWebNotify_RequestHeaders.
Thank you,
Balaji


Complete thread: