Skip to content
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

Frontend shows CORS errors when you quit and restart the backend #19

Open
ksylvan opened this issue Dec 3, 2023 · 0 comments
Open

Frontend shows CORS errors when you quit and restart the backend #19

ksylvan opened this issue Dec 3, 2023 · 0 comments
Assignees
Labels

Comments

@ksylvan
Copy link
Owner

ksylvan commented Dec 3, 2023

Reproduce by:

./zoom-manage server
./zoom-manage dashboard
./zoom-manage roster

The frontend should show your meeting participants.

Then kill the server (control-c in the terminal window, and close the window), and restart it.

./zoom-manage server

Refresh the frontend dashboard window, and you'll see the lists are empty.

in the dashboard web browser window, use Developer Tools or Inspect to look at the javascript REST calls. You'll see messages like this:

Access to fetch at 'http://localhost:5000/waiting' from origin 'null' has been blocked by CORS policy:
No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response
serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

While this CORS denial is happening, you can go to the FastAPI Swagger page at http://localhost:5000/docs#/ and you'll see that the endpoints are working.

By quitting your browser (Brave in my case) and restarting it, everything works again.

@ksylvan ksylvan self-assigned this Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant