untitled notebook

node v4.9.1
version: 2.0.0
endpointsharetweet
exports.endpoint = function(req, res) { res.setHeader("Access-Control-Allow-Origin", "http://192.168.1.118:3000"); res.setHeader("Access-Control-Expose-Headers", "tonic-rate-limit-remaining") res.setHeader("Access-Control-Allow-Credentials", "true") res.statusCode = 200; res.end("Hello world!"); }
Loading…

no comments

    sign in to comment