I have an issue while exposing a WCF-webHttp Service using the Microsoft Azure Service Bus Relay.
My problem is that I will be calling this Service from another domain (azurewebsites.net).
Because of this I need to set the Access-Control-Allow-Origin HTTP Header in the response, but as far as I can tell the Service Bus Relay removes the headers send from the local IIS.
Headers when calling the service locally:
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE
Access-Control-Allow-Headers: Content-Type, X-Requested-With
Content-Length: 0
Content-Type: application/xml; charset=utf-8
Date: Tue, 28 Oct 2014 10:37:40 GMT
Server: Microsoft-IIS/8.5
X-Powered-By: ASP.NET
Headers when calling the same service relayed in Azure:
Content-Length: 0
Date: Tue, 28 Oct 2014 10:36:46 GMT
Server: Microsoft-HTTPAPI/2.0
I can't find anyway to bypass this or set up additional headers in Azure.
Am I missing something or is this a limitation (and if so, how do you call a relayed Service from another domain in a modern browser with angularjs etc.?)
Morten la Cour