Orthnac api setup

I am using meteor framwork and I used ohif-meteor package for the dicom setup in my app, used orthanc serrver to store the dicom files, I want to setup the api from my app but it is showing cors policy

Same-origin policy in JavaScript,

How can I solve this please help.

A possible solution to prevent same-origin policy violations is to put both your application and orthanc behind a reverse proxy.

For instance, with nginx (this is what I often use) : https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/

Here are some links in the FAQ of the Orthanc Book that are complementary to Benjamin’s answer:
https://book.orthanc-server.com/faq/apache.html

https://book.orthanc-server.com/faq/nginx.html

https://book.orthanc-server.com/faq/iis.html