To this Nginx you mean?
Try to use reverse proxy but I could not, you can explain more
This is what the browser shows me
The server responds with the following;
HEADER RESPONSE
Content-Type: application / dicom
Date: Sat, 01 Apr 2017 01:15:38 GMT
Expires: 0
Server: Apache-Coyote / 1.1
Transfer-Encoding: chunked
X-Powered-By: Servlet 2.4;
JBoss-4.2.3.GA (build: SVNTag = JBoss_4_2_3_GA
Date = 200807181439) /JBossWeb-2.0
REQUEST HEADER
Accept: * / *
Accept-Encoding: gzip, deflate, sdch, br
Accept-Language: en-US, en, q = 0.8, en-US; q = 0.6, en; q = 0.4
Connection: keep-alive
Host: localhost: 8080
Referer: http: // localhost: 3000 /
User-Agent: Mozilla / 5.0 (X11; Linux x86_64) AppleWebKit / 537.36 (KHTML, like
Gecko) Chrome / 55.0.2883.87 Safari / 537.36
But it does not work
These are my app.js code
Var express = require ('express');
Var cors = require ('cors')
Var users = require ('./ routes / users');
Var app = express ();
App.use (cors ({origin: 'localhost: 8080';}));
App.set ('views', path.join (__ dirname, 'views'));
App.use ('/', index); App.use ('/ users', users); App.listen (3000, function () {}); Module.exports = app
Can you explain me more
Also try to enter the page
http://viewer.ohif.org/ but this fall; Can you explain me more how to use a reverse proxy in NODEJS because I try to use one and I could not
I also saw this example
Var http = require ('http'),
HttpProxy = require ('http-proxy');
Var proxy = httpProxy.createProxyServer ({target: 'http: // localhost: 8042'}) .listen (8000);
Proxy.on ('proxyRes', function (proxyReq, req, res, options) {
// add the CORS header to the response
Res.setHeader ('Access-Control-Allow-Origin', '*');
});
Proxy.on ('error', function (e) {
// suppress errors
});
But I did not work because I use express.