frappe / frappe_docker

Docker images for production and development setups of the Frappe framework and ERPNext
MIT License
1.5k stars 1.39k forks source link

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

Closed sduenasg closed 1 month ago

sduenasg commented 3 months ago

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 commented 3 months ago

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.

github-actions[bot] commented 1 month ago

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