Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var cors = require("cors");
- cors({ origin: '*' });
- cors({ allowHeaders: 'X-PINGOTHER'});
- cors({ methods: 'GET,HEAD,PUT,PATCH,POST,DELETE'});
- exports.endpoint = function(request, response) {
- let text = '100,000';
- response.writeHead(200, { 'Content-Type': 'text/plain' });
- response.end(text);
- }
Add Comment
Please, Sign In to add comment