Redmine REST API - Same Orgin Policy

Added by Artur G over 5 years ago

Hi,
I wrote plugins for Mozilla and Chrome and I want connected them to Redmine. It's impossible using XHR because AJAX request is blocked by browser (Same Origin Policy).

I know, that solution is add response header - W3C: www.w3.org/TR/cors/

Apache -> VHost -> Ruby (passenger) - Redmine

Can you tell me where can I add correct header? I don't want change Apache settings directly, so I need change something in lower level - but I don't have any idea.