Custom http headers
- Product: Aleph
- Product Version: 21, 22, 23
- Relevant for Installation Type: Multi-Tenant Direct, Dedicated-Direct, Local, TotalCare
Description
How can I use customize http headers?
Resolution
Under certain circumstances, you may want to customize Aleph WWW server headers as sent by the server. You need to distinguish between standard files handled directly by apache server from $httpd_root/htdocs directory and Aleph html pages that are generated by the WWW application server. Each is providing their own set of headers.
1) for apache, you can change standard headers and define customized headers in the httpd configuration ($httpd_root/conf/httpd.conf), e.g.
Header set Access-Control-Allow-Origin: www.your_another_server.com
after apache restart (util W-3-6), you can check your headers using a command:
curl -I http://your_server
2) for WWW server, standard headers are hardcoded and cannot be changed; but you can define additional customized headers in the www server configuration ($alephe_root/www_server.conf)
setenv http_header "Access-Control-Allow-Origin: www.your_another_server.com"
after www restart (util W-3-1), you can check your headers using a command: curl -I http://your_server/F
Additional Information
The following information was taken from internal program documentation:
Add the following line in www_server.conf to make Aleph set cookies when it's displayed in iFrame (fix for IE)
setenv http_header 'P3P: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"' */
- Article last edited: 18-April-2017