QuestionQ31

VerifiedMonitoring

What should an integration architect validate first when a callout from a Lightning Web Component to an external endpoint fails?

Explanation

Lightning Web Components cannot call third-party APIs from JavaScript by default because Salesforce Content Security Policy blocks those sources. The external endpoint’s base URL must be configured as a Trusted URL in CSP before the browser-side request can proceed. Remote Site Settings are for Apex callouts; CORS must be permitted by the external service.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!