NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: the_question on September 17, 2026, 07:27:04 AM
-
Hello,
I am trying to add some elements in response headers for NetWebPage. I have found in NetWebHandleRequest p_web.CreateHeader procedure. There is a parameter NetWebServerHeaderDetailsType p_HeaderDetails. When I add data in p_HeaderDetails.CustomHeader before ReturnValue = PARENT.CreateHeader(p_HeaderDetails) call, nothing is saved in generated header.
How can I add elements in response header?
-
show your code, and where it goes.
-
This is inside NetWebHandleRequest:
p_web.CreateHeader PROCEDURE(NetWebServerHeaderDetailsType p_HeaderDetails)
ReturnValue ANY
! Start of "NetTalk Method Data Section"
! [Priority 5000]
! End of "NetTalk Method Data Section"
CODE
! Start of "NetTalk Method Executable Code Section"
! [Priority 2500]
p_HeaderDetails.CustomHeader = CLIP(p_HeaderDetails.CustomHeader) & |
'<13,10>Cross-Origin-Opener-Policy: same-origin' & |
'<13,10>Cross-Origin-Embedder-Policy: require-corp'
! Parent Call
ReturnValue = PARENT.CreateHeader(p_HeaderDetails)
! [Priority 7500]
! End of "NetTalk Method Executable Code Section"
RETURN ReturnValue