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

Docker containers for development, vuejs SPA and port 9000 cors issues #1449

Closed
sduenasg opened this issue Jul 31, 2024 · 2 comments
Closed

Comments

@sduenasg
Copy link

sduenasg commented Jul 31, 2024

Hi,

We have a development frappe docker environment deployed locally on Linux (using dev containers in vscode), and we created a vue.js app inside one of our apps using Doppio. We built the SPA (bench build) and access it from development.localhost:8000/dashboard_name. This vue js app shows up, but keeps getting these errors trying to access port 9000 (socketio)

image

image

Can anyone help? seems like there is some kind of CORS problem, but not really sure how to troubleshoot and fix this. We added to site_config.json the following to no avail::

 "allow_cors": [
  "*"
 ],
@sduenasg sduenasg changed the title Docker containers for development and CORS issues Docker containers for development port 9000 issues Jul 31, 2024
@sduenasg sduenasg changed the title Docker containers for development port 9000 issues Docker containers for development, vuejs SPA and port 9000 issues Jul 31, 2024
@sduenasg sduenasg changed the title Docker containers for development, vuejs SPA and port 9000 issues Docker containers for development, vuejs SPA and port 9000 cors issues Jul 31, 2024
@sduenasg
Copy link
Author

sduenasg commented Jul 31, 2024

Ok, if I disable the socket import in main.js (from the example app that doppio creates), the error stops. For now we'll leave it like that.

Copy link
Contributor

This issue has been automatically marked as stale. You have a week to explain why you believe this is an error.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant