Call to api does not work

Answered

Comments

4 comments

  • Official comment
    Avatar
    Thanos Zelios

    Hello Ismael,

    I was just informed that our development team has enabled cross-origin HTTP requests on our servers.
    Therefore, normally, with the above call, you should be able to receive data.
    For any further inquiry, please do not hesitate to let me know.

    Best regards,

    Comment actions Permalink
  • Avatar
    Ismael Guerrero

    Can someone help me? I guess its the cross domain policy but there is no way to get the call by code

    0
    Comment actions Permalink
  • Avatar
    Marine Traffic

    Dear Ismael,

    Thank you for reaching out to us.

    I have escalted your request to our API support team.

    One of my dear colleagues will be contacting you as soon as possible to help you in this matter.

    Should you need anything else in the meantime, I hope that you will not hesitate to let me know.

    I will be happy to assist.

    Kind regards,

    0
    Comment actions Permalink
  • Avatar
    Thanos Zelios

    Hello Ismael,

    As you correctly mention in your e-mail, the reason for not receiving any data is the cross domain policy.

    Unfortunately, we have no available code snippets at the moment which might help you in your implementation.

    In order to receive the response, you need to use some sort of third party agent that can get the data for you. The two most common ways of doing this are to either make a request of your own server to get some content from some other server. This will allow your server to fetch the data from the other server and return it to you, or use a proxy server with the same results as described above.

    Hope the above helps.

    Best regards,

    0
    Comment actions Permalink

Please sign in to leave a comment.