Open marimes opened 4 years ago
This may be because you are starting the app in development mode by running yarn start
and the requests to the node are being blocked by CORS. I suggest installing SPM with the provided installers under releases.
Anyway, if you still want to use the app in development mode you will need to add the CORS configuration to the node config file inside the rest
property. Just add your address and port where the app is running (3000 by default) as an allowed origin and restart the node. You can find the documentation here. It should be something like:
"rest": {
"listen": "127.0.0.1:3100",
"cors": {
"allowed_origins": ["http://<ip_address>:<port>"]
}
}
I try to use spmt locally and created an ssh tunnel with:
When I test the tunnel with
I get the desired output showing that the tunnel works.
When I
yarn start
the electron app and then enterhttp://localhost:43100
as the node's rest address I get the errorError connecting to node
.How should I set this up?