I have a situation where I want to use "Content-Length" header from another domain with Lighttpd using XHR HEAD request but I get Refused to get unsafe header 'content-length'
message.
My idea is to add response header based on another response header in lighttpd.conf:
setenv.add-response-header = ('X-Content-Length' => GET_MY_RESPONSE_HEADER('Content-Length'))
Is there a way to write GET_MY_RESPONSE_HEADER()
function/property in config file?