mock api with cors

node v14.19.2
version: 1.0.0
endpointsharetweet
exports.endpoint = function(req, res) { res.writeHead(200, { 'Content-Type': 'application/json', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': '*', }); res.end('foo'); };
Loading…

no comments

    sign in to comment