-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uploading Image #14
Comments
I'm getting a similar error, it's related to a CORS issue |
Did anyone find a solution for this? |
Yeah, the issue is due to the Basically, in the functions folder, there is an
simply remove the code related to the service account as such:
This is what worked for me. Also, be careful if you're on the spark plan not to have too many requests within 100 seconds, otherwise, you'll get a CORS error. |
Thanks for the quick reply @sshah98. The code in my
However, I am getting the same error |
I can upload new image from postman but I cannot upload image from web app.
export const uploadImage = formData => dispatch => { dispatch({ type: LOADING_USER }); axios .post("/user/image", formData) .then(() => { dispatch(getUserData()); }) .catch(err => console.log(err)); };
The text was updated successfully, but these errors were encountered: