API Connection to demo failed : HTTP 0

4 posts / 0 new
Last post
ooznerol
API Connection to demo failed : HTTP 0

Hi all

First, I have no problem with my real account.

But with my demo account I can't login with API.

The API companion return me :

HTTP 0

status: error

I had of course create a demo username and password in my account (as described here : https://labs.ig.com/node/189)

Any idea?

Thanks

mblaublomme
I have the same problem.

I have the same problem.

I can login but I am not able to open position with companion.
I can see a CORS HTTP error in my browser console :
Failed to load https://demo-api.ig.com/gateway/deal/positions/otc: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://labs.ig.com' is therefore not allowed access. The response had HTTP status code 400.

kristof_w
I started having the same

I started having the same problem a week ago. My demo was working perfectly and suddenly I wasn't able to even log on anymore.
Result from the browser is: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://labs.ig.com' is therefore not allowed access. The response had HTTP status code 400.

This means the response (from the IG API) doesn't have the headers set correctly in order to be able to access the API from a different domain.

Has any of you found a solution to this problem?

ooznerol
Hi,

Hi,

I had try to reconnect and now I have : error.security.client-suspended

How can I fix this?

Thanks

Log in or register to post comments