server.2016.SV.js
/**
 * Making AJAX and SSE available from everywhere
 * @param {type} res Response to be given to the client
 * @returns {undefined}
 */
Making AJAX and SSE available from everywhere
@param {type} res Response to be given to the client
@returns {undefined}
Making AJAX and SSE available from everywhere @param { type } res Response to be given to the client @returns { undefined }
function allowCORS(res) {
    res.setHeader('Access-Control-Allow-Origin', '*');
    res.setHeader('Access-Control-Request-Method', '*');
    res.setHeader('Access-Control-Allow-Methods', 'OPTIONS, GET');
    res.setHeader('Access-Control-Allow-Headers', '*');
}
function allowCORS ( res ) { res . setHeader ( 'Access-Control-Allow-Origin' , '*' ) ; res . setHeader ( 'Access-Control-Request-Method' , '*' ) ; res . setHeader ( 'Access-Control-Allow-Methods' , 'OPTIONS, GET' ) ; res . setHeader ( 'Access-Control-Allow-Headers' , '*' ) ; }
Making AJAX and SSE available from everywhere
 @param {type} res Response to be given to the client
 @returns {undefined}
Making AJAX and SSE available from everywhere @param { type } res Response to be given to the client @returns { undefined }