CORS - client side api call

34 views
Skip to first unread message

Matija Kovaček

unread,
Apr 19, 2016, 10:13:01 AM4/19/16
to Europass Interoperability
I'm trying to call api from client side but I have CORS problem.

Please add CORS support on server side and enable Cross origin request.

Europass Interoperability

unread,
Apr 19, 2016, 10:37:43 AM4/19/16
to Europass Interoperability
Hi Matija,

Thank you for your message and your interest in Europass.

Can you please send us the domain(s) where your app will run so that we can enable CORS for you?

Regards,

Dimitris Zavaliadis
Team Europass

Matija Kovaček

unread,
Apr 19, 2016, 10:48:49 AM4/19/16
to Europass Interoperability
I'm sending requests from localhost

Europass Interoperability

unread,
Apr 20, 2016, 5:00:33 AM4/20/16
to Europass Interoperability
Hi Matija,

Our servers have been reconfigured accordingly. Can you please try again and let us know if it works for you now?

Thanks,

Dimitris Zavaliadis
Team Europass

Matija Kovaček

unread,
Apr 20, 2016, 7:05:52 AM4/20/16
to Europass Interoperability
Hi Dimitris,

CORS problem is fixed but I receive this response 400 and this msg http://prnt.sc/aujoua

This reponse I receive when I'm sending from my app, but when I'm sending the same request from Postman than is everything ok

Europass Interoperability

unread,
Apr 20, 2016, 7:22:11 AM4/20/16
to Europass Interoperability
Hi again,

The error shown at http://prnt.sc/aujoua and the corresponding logs in our server indicate that you're trying to upload an invalid JSON document to the REST API. I'm not sure why it works with Postman but not with your app.

Can you please send me this document as well as your HTTP request parameters to take a look?

Regards,
Dimitris

Matija Kovaček

unread,
Apr 20, 2016, 9:14:13 AM4/20/16
to Europass Interoperability
Hi,

problem was on my side. I forgot stringify json.

Thanks on fixing CORS :)

Europass Interoperability

unread,
Apr 20, 2016, 9:46:19 AM4/20/16
to Europass Interoperability
Ok, no problem.

Please let us know in case you need anything else.

Regards,
Dimitris
Reply all
Reply to author
Forward
0 new messages