core/REST/handler.js
function(req) {
	return ((req.headers.origin && req.headers.origin !== "null") ? req.headers.origin : "*");
}
function(req) {
	return ((req.headers.origin && req.headers.origin !== "null") ? req.headers.origin : "*");
}
function ( req ) { return ( ( req . headers . origin && req . headers . origin !== "null" ) ? req . headers . origin : "*" ) ; }
helper code  get origin from request
helper code get origin from request