This commit is contained in:
2019-09-02 12:56:19 -04:00
parent 285a9ede4d
commit e220e23b24
7 changed files with 56 additions and 16 deletions

10
functions/src/index.ts Normal file
View File

@ -0,0 +1,10 @@
import * as functions from 'firebase-functions';
import * as cor from 'cors';
const cors = cor({origin: true});
exports.helloWorld = functions.https.onRequest((req, res) => {
return cors(req, res, () => {
res.status(200).send('Hello World!');
});
});