0

This question already has an answer here:

Can I use third party library like Axios in Visualforce lightning components?

Thank you.

marked as duplicate by glls, battery.cord, David Reed, Sebastian Kessel, Oleksandr Berehovskyi Aug 20 '18 at 5:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

You can make an HTTP request directly from the lightning component or by using any library. But sometimes you will may to use the Apex for calling third-party web APIs.

By default, you can’t make calls to third-party APIs from client-side code. Add a remote site as a CSP Trusted Site to allow client-side component code to load assets from and make API requests to that site’s domain.

Link to the documentation - enter link description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.