const cors = require('cors')
app.use(cors())
let corsOptions = {
origin: 'http://front.xxx.ru',
optionsSuccessStatus: 200,
credentials: true
};
app.use(cors(corsOptions));
$httpProvider.defaults.withCredentials = true;
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.open('POST', 'http://xxx.ru', true)
$.ajax({
///
crossDomain: true,
///
});