Comments (13)
I have the same problem. Can someone help?
from functions-samples.
cors(req, res, async () => {
passing async function to third parameter of cors
does not work because it does not return the promise object.
https://github.com/expressjs/cors/blob/master/lib/index.js#L188
It may cause the problem.
from functions-samples.
I also Face the same issue , so till now did any one resolved this issue .?
from functions-samples.
It seems there is a 500 error returned. Can you check the Function log (in the Firebase console) to see if there is more info about these 500 errors? in case that helps...
from functions-samples.
Hi Frank, This doesn't look like an issue with the firebase-samples repo. Would you mind putting this question on Stack Overflow or reaching out to support? ☼, Kato
from functions-samples.
is cors module necessary ?
from functions-samples.
hi did you resolve this issue?
I am also having the same issue
from functions-samples.
I am having the same issue as well. How did you resolve the problem?
from functions-samples.
it was a cors issue.
const cors = require('cors');
const corsOptions = {
origin: '*',
allowedHeaders: ['Content-Type', 'Authorization', 'Content-Length', 'X-Requested-With', 'Accept'],
methods: ['GET', 'PUT', 'POST', 'DELETE', 'OPTIONS'],
optionsSuccessStatus: 200 // some legacy browsers (IE11, various SmartTVs) choke on 204
};
app.use(cors(corsOptions));
app.get('/portfolio', cors(corsOptions), (() => {
// rest of the code here.
}
from functions-samples.
from functions-samples.
I am not sure what you are trying to do but I believe the code I pasted will allow you to call methods on the Express application regardless of what the app/function does (access DB or not).
from functions-samples.
I have the same problem. Can someone help?
how to solve this
from functions-samples.
hi did you resolve this issue?
I am also having the same issue
hii if your issue resolve please let me know..
from functions-samples.
Related Issues (20)
- No alert function detected
- [BUG] in sample: firebase function (2nd generation) HOT 2
- [DOCS] for sample:
- [BUG] in sample:
- [BUG] in sample:
- LGTM
- [DOCS] Example app in readme.md does not work HOT 1
- [DOCS] for sample: taskqueues-backup-images, not clear how to set up "impersonation" permission HOT 2
- [BUG] in sample: alert
- DisplayUnlockCaptcha
- [BUG] in sample:
- [DOCS] for sample: taskqueues-backup-images, it simply doesn't work with tasks_fn.on_task_dispatched function, only with http_fn.on_request function HOT 5
- onTaskDispatched when region is set the function don't deploy to the region in sample:
- [BUG] Some phone numbers do not receive OTP SMS messages with Firebase phone auth: HOT 5
- Problems with sending push notifications
- functions predeploy error: Command terminated with non-zero exit code 2 HOT 1
- functions predeploy error: Command terminated with non-zero exit code 2 HOT 1
- [DOCS] for sample: python callable functions
- How is this still a problem 2 years later? I am running into this now.
- [BUG] in sample: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/v2/providers/scheduler' is not defined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from functions-samples.