Is it possible to consume your API directly from front-end ex. Angular ?
When i tried last time , i got "No Access-Control-Allow-Origin" message.
Thank's
February 18Created
January 21Last Updated
3 years agoLast Reply
4Replies
222Views
3Users
0Likes
0Links
Duo_Liang | Posts: 3776
Reply to: Call API from front-end (angular)
Monday, February 18, 2019 at 06:05am
0
votes
Hi oualid,
When invoking API calls from Javascript in a browser, it triggers and CORS and preflight requests. For currently, there's no direct way to adjust your code and enable call API from front-end, and all API calls should be requested from your server side.
But many potential solutions have been proposed internally and there could be a way to do so in the future. I would update this thread once there's any updates on this.
Hope this could help!
Duo
Unfortunately, it's still not available to directly invoke API calls from the frontend. You will have to at least set up a backend service and proxy all requests to the OneSpan Sign server.
Reply to: Call API from front-end (angular)
Monday, February 18, 2019 at 06:05amReply to: Call API from front-end (angular)
Monday, February 18, 2019 at 07:02amReply to: Call API from front-end (angular)
Wednesday, July 21, 2021 at 06:05pmHey Duo,
Could you please confirm if there is any update on this issue? We are trying to call API directly from frontend and facing CORS issues.
Thanks!
Reply to: Hey Duo, Could you please…
Thursday, July 22, 2021 at 08:41amHi Aysha,
Unfortunately, it's still not available to directly invoke API calls from the frontend. You will have to at least set up a backend service and proxy all requests to the OneSpan Sign server.
Duo