View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0009539||New Feature Requests||[All Projects] General||public||2017-01-26 15:45||2017-06-18 20:54|
|Summary||0009539: [Request]: Add possibility to set response headers for HTTP exported functions|
I tried to integrate my server with my website. Server provides different API methods, using HTTP export feature (e.g. <export function='foo' http='true'/>).
Looks like ipoHttpResponse->oResponseHeaders, should be editable from lua side.
|Tags||No tags attached.|
Have you considered running a HTTP proxy, such as haproxy or varnish in front of MTA server? Both of them allow you to manipulate requests and responses in real time.
hm, not yet, but will take a look on it! thank you for suggestion.
Here's a varnish 4 config that should get you going: http://pastebin.com/3ikWsaSP
It forwards all requests to 127.0.0.1:22005 and adds Access-Control-Allow-Origin header to every response.