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

Issue with connection to server #35

Open
remasterzerouvm opened this issue Jan 26, 2025 · 3 comments
Open

Issue with connection to server #35

remasterzerouvm opened this issue Jan 26, 2025 · 3 comments

Comments

@remasterzerouvm
Copy link

I activated the software frontend and is working locally but when using a domain it says "> Waiting for Miku's power..."
Is anything else needed? seems that is unable to contact the backend... I changed the vite.config.ts

editing this line
server: {
strictPort: true,
allowedHosts: ['mikubeam.mydomain.cc'],
},

Image

@sammwyy
Copy link
Owner

sammwyy commented Jan 26, 2025

Check the console if it can connect to the backend (usually on port 3000)

@remasterzerouvm
Copy link
Author

in my local it works without any issues ,

when I use a domain it returns

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:3000/socket.io/?EIO=4&transport=polling&t=clsywzk3. (Reason: CORS request did not succeed). Status code: (null).

I think i need to also expose the server but how can I make the front end recognize it?

@sammwyy
Copy link
Owner

sammwyy commented Jan 26, 2025

You need to modify the server source code to allow connections from your new host, just as you need to change the server URL in the frontend source code.

This would be easier if docker was used. Ok I have an idea...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants