Demo entry 6636838

Function lala

   

Submitted by anonymous on Aug 29, 2017 at 11:11
Language: JavaScript. Code size: 289 Bytes.

// Authorize external access
const allowCrossDomain = function (req, res, next) {
    res.header('Access-Control-Allow-Origin', "*");
    res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
    res.header('Access-Control-Allow-Headers', 'Content-Type');
    next();
};

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).