Enable CORS for Orthanc on Windows

Hi everyone,
I need to enable CORS for Orthanc server. I understand that Orthanc does not support this. And I see that I have several options here.

  1. Branch the REST API of Orthanc as a reverse proxy into the Web server that serves the JavaScript code (…). This is the best solution for production.

Please bear with me as I am not an expert sys admin. How do I achieve this instruction " Branch the REST API of Orthanc as a reverse proxy into the Web server that serves the JavaScript code"?
I am on Windows. I have one server which is dedicated to Orthanc (under domain orthanc.mydomain.com). Another Windows server host my web apps (under domains like app.mydomain.com). They will make requests to my Orthanc instance.

Thanks.

Hello
i’ve used nginx for enabling CORS
here is example
https://book.orthanc-server.com/faq/nginx.html#nginx

1 Like

Thank you very much! I got it running, too.
I installed nginx on my Orthanc server and used your link to configure CORS openness in nginx configs. Now my web apps on other servers are working well with Orthanc :smiley:

1 Like