HTTP Requests from LWC with the Fetch API | Developer Quick Takes

Published: 01 January 1970
on channel: Salesforce Developers
816,605
246

Learn how to perform HTTP requests using the JavaScript standard Fetch API from a Lightning Web Component (or any other JS file).

https://trailhead.salesforce.com/cont...
https://developer.mozilla.org/en-US/d...
https://app.lwc.studio/view/9UvzKbkZr...
   • Fixing CSP Errors in LWC OSS apps | D...  

00:00:04 Introduction
00:00:15 What is the Fetch API?
00:00:29 What are we building?
00:00:58 Remote site settings
00:01:07 Content Security Policy Trusted Sited
00:01:21 LWC Application demo
00:02:00 Making a GET request using Promises
00:03:39 Convert image Blob to Base64 image
00:04:19 Making a POST request using async/await
00:05:27 Resources
00:05:52 Thanks for watching


Connect with Salesforce Developers:

Join the Community: www.salesforce.com/devcommunity
Website: https://developer.salesforce.com/
LinkedIn:   / salesforce-developers  
Twitter:   / salesforcedevs  
Facebook:   / salesforcedevs  


Watch video HTTP Requests from LWC with the Fetch API | Developer Quick Takes online without registration, duration hours minute second in high quality. This video was added by user Salesforce Developers 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 816,605 once and liked it 246 people.