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,
///
});
const session = require('express-session');
const sessionStore = require('express-mysql-session');