As I am not able to do ssh for manually installing the Python dependencies, I finally deployed my Python app as a separate app and now trying to call it's APIs in my Node App.
Getting following error when I make API call to my Python App:
Refused to connect to 'https://<mypythonapp>.eu1.mindsphere.io/api' because it violates the following Content Security Policy directive: "default-src 'self' static.eu1.mindsphere.io". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.
I have ofcourse included the XSRF-TOKEN from the cookies along with the origin. Do I need to do anything else when I am calling another MindSphere App API?
I just learned today that in order to fully enable ssh on a cloudfoundry application, after enabling the settings you have to restart it, might it be that you haven't restarted it? Just wondering, I had not noticed because we restart our apps so often.
(Another poster had a similar issue)
Thanks a lot, it does work after restarting the app.
It does not allow me to execute "sudo apt-get install pip", but that should be okay now as I have deployed my Python app as a separate app with APIs so that I can access the calculation APIs through my Node.js App.
Thanks again for your support.