Enable CORS on Azure Service Bus Namespace -


i want use azure service bus rest api in javascript. unfortunately i'm running cross origin problems, service bus namespace not in same domain site.

i know can enable cors many azure services, can't find resource in azure documentation or elsewhere telling me how service bus.

does if, , how can done?

i've solved issue creating separate web app following web.config simple proxy.

<?xml version="1.0" encoding="utf-8"?> <configuration>   <system.webserver>     <rewrite>       <rules>         <rule name="proxy" stopprocessing="true">           <match url=".*" />           <conditions>             <add input="{cache_url}" pattern=".*" />           </conditions>           <action type="rewrite" url="https://mynamespace.servicebus.windows.net/{r:0}" logrewrittenurl="true" />       <servervariables>         <set name="http_accept_encoding" value="" />       </servervariables>     </rule>     <httpprotocol>       <customheaders>         <add name="access-control-expose-headers" value="brokerproperties" />       </customheaders>     </httpprotocol>   </system.webserver> </configuration> 

Comments