OHIF Viewer Using Orthanc Server Side
IIS web.config to reverse proxy 8042 to 8041, and enable CORS
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<cors enabled="true" failUnlistedOrigins="false">
<add origin="*" allowed="true">
<allowHeaders allowAllRequestedHeaders="true">
</allowHeaders>
</add>
</cors>
<rewrite>
<outboundRules>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
<rules>
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://localhost:8041/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Subscribe to Lydon's blog
Get the latest posts delivered right to your inbox