I just finished the Hello World Google Cloud Functions tutorial and received the following response headers:
Connection → keep-alive Content-Length → 14 Cont
here we go:
exports.helloWorld = function helloWorld(req, res) { res.set('Access-Control-Allow-Origin', "*") res.set('Access-Control-Allow-Methods', 'GET, POST') res.status(200).send('weeee!); };
then you can jquery/whatever it as usual:
$.get(myUrl, (r) => console.log(r))