In summary I am using a viewer like api of dicom files called cornerstone, for this I connect to the WADO service of dc4chee to get the dicom, dcm4chee runs port 8080, and m
do
npm install cors --save
and just add these lines in your main file where your request is going.
const cors = require('cors'); const express = require('express'); let app = express(); app.use(cors()); app.options('*', cors());