-
Notifications
You must be signed in to change notification settings - Fork 45
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
Getting CORS errors when trying to update profile picture. #373
Comments
@jeremydthomas Are you getting this when you run the app locally? If so, I experienced the same thing --- turns out if you access the app at the 127.0.0.1:5173 address mentioned in the console when the server starts, it will throw a CORS error. Accessing via localhost:5173 seems to solve the issue for me. However, there is still a problem with updating user bio, which is that once you no longer have the CORS errors, you discover that the method hasn't been implemented in the backend api! (501 error) Backend recently switched from individual serverless functions to a serverless express app and it looks like not all of the methods were implemented. (I'll be working on fixing this next before I mess around with unit tests on the front end more. But definitely check if accessing via localhost solves your CORS issue.) |
Doesnt look like it from the picture, there were other errors on this page I was getting that Im not getting any more. However, I just logged in and went there and now I see this. |
Ill try the local host thing, give me a minute |
Yeah the status code 501 is exactly what I'm talking about! |
I only get the status code 501 on both localhost and 127.0.0.1. Honestly, Ive never logged into anything other than using localhost. |
Prerequisites
Description
Getting CORS errors when trying to update your profile picture
Steps to Reproduce
Expected behavior:
picture uploaded
Actual behavior:
network error on page and CORS error in dev tools
Reproduces how often:
100%
Additional Information
@mikhael28
The text was updated successfully, but these errors were encountered: