[UploadService]: Allow specific Origin for every request.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@56113 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
950bed1b9b
commit
b70716fb5f
|
@ -60,7 +60,7 @@ app.use(function (req, res, next) {
|
|||
res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept, x-xsrf-token');
|
||||
next();
|
||||
} else {
|
||||
res.header('Access-Control-Allow-Origin', '*');
|
||||
res.header('Access-Control-Allow-Origin', req.headers.origin);
|
||||
res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept');
|
||||
next();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue