Forum Discussion

Neil_66348's avatar
Neil_66348
Icon for Nimbostratus rankNimbostratus
Nov 12, 2012

HTTP::Header insert not working

 

Hi Guys ,

 

 

Can anyone point out why the below might not be working , passing back the below on the response headers to an end users browsers.

 

 

No errors okay , just headers don't appear.

 

 

when HTTP_REQUEST {

 

clientside {

 

HTTP::header insert Access-Control-Allow-Credentials true

 

HTTP::header insert Access-Control-Allow-Origin www.wesbite.com

 

}

 

}

 

 

 

Thanks

 

 

Neil

 

2 Replies

  • I think you should be doing this with the HTTP_RESPONSE event if you want these headers to be sent to the client.
  • The clientside command is about context, not flow. I'm guessing you're seeing these headers show up on the server side?

     

     

    If you want headers sent to the client, use these HTTP header inserts in the HTTP_RESPONSE.