I am using Leapjs external library and trying to execute a simple Leapjs function : loop in lightning component.
I got content security policy error which goes like this
Refused to connect to 'ws://127.0.0.1:6437/v3.json' because it violates the following Content Security Policy directive: "connect-src 'self'".
now in documentation it says that XHR and websockets can only be called by same domain. (mostly it is lightning.force.com but my domain is 127.0.0.1:6437.
I have also added
<meta http-equiv="Content-Security-Policy" content="connect-src 'self'"/>
in my code
any workaround ?