Forum Discussion
Neil_66348
Nimbostratus
Nov 12, 2012HTTP::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
- What_Lies_Bene1
Cirrostratus
I think you should be doing this with the HTTP_RESPONSE event if you want these headers to be sent to the client. - Kevin_Stewart
Employee
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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects