diff --git a/index.js b/index.js index 3fd2256..626c786 100644 --- a/index.js +++ b/index.js @@ -84,7 +84,7 @@ app.get("/generateSignedURL", (req, res) => { const [url] = await bucket.file(filename).getSignedUrl(options); - console.log(`The signed url for ${filename} is ${url}.`); + console.log(`The signed url is ${url}.`); res.send(url); } generateSignedUrl().catch(console.error); diff --git a/marketalarm-cors.json b/marketalarm-cors.json index 2af91b2..355e679 100644 --- a/marketalarm-cors.json +++ b/marketalarm-cors.json @@ -1,8 +1,8 @@ [ { - "maxAgeSeconds": 3600, - "method": ["*"], - "origin": ["*"], - "responseHeader": ["*"] + "origin": ["http://localhost"], + "responseHeader": ["Content-Type"], + "method": ["GET", "HEAD", "DELETE"], + "maxAgeSeconds": 3600 } ]