@@SalesforceBolt To be honest, I learn a lot lot from your content about LWC and cool Salesforce's hacks, please keep sharing.
@SalesforceBolt
2 жыл бұрын
@@SalesforceCoder glad you find it useful. I'll keep sharing new content, thank you :)
@sathishbatta6781
2 жыл бұрын
Thanks😊 Learned new thing today
@SalesforceBolt
2 жыл бұрын
Glad you like it!
@rakeshkumarcrk
2 жыл бұрын
Thanks for this video..
@SalesforceBolt
2 жыл бұрын
Glad you like it !
@ickysnowman
2 жыл бұрын
awesome job!
@SalesforceBolt
2 жыл бұрын
Thank you! Cheers!
@atharvapatwardhan813
2 жыл бұрын
Though the sites are added in CSP. Will there be any additional scrutiny in the salesforce security review for the api calls made from frontends? Thanks
@SalesforceBolt
2 жыл бұрын
Hi Atharva, as far I am aware it will still do the Cross-site scripting security check.
@gregorygouveia8109
2 жыл бұрын
Could you give an example of creating a button to refresh the page instead of manually doing through "F5"?
@SalesforceBolt
2 жыл бұрын
Just copy the code from connectedCallBack to your button's click function.
@SumitSaini-l1n
Жыл бұрын
Hi, I am having an issue when trying to calling api from the lightning web component fetch method in JS. I am using open callout URLs in my org and when try to call from the fetch method then I am getting below error : Refused to connect, because it violates the document's Content Security Policy. aura_prod.js:55 TypeError: Failed to fetch I have already this url in remote site setting and CSP trusted site but still getting the error. This url is working fine when I am using apex. Kindly provide help on this why I am getting error when calling from the fetch() method in js even I have added the url in required settings (Remote site settings & CSP trusted site).
@SandeepRahoolPV
Жыл бұрын
How to do the same if the endpoit has username and password, where shoud we provide them? Please explain.
@SalesforceBolt
Жыл бұрын
Hey have you tried named credentials?
@rakeshkumarcrk
2 жыл бұрын
Can you create video for inline if conditions in lwc tags in loop.
@SalesforceBolt
2 жыл бұрын
Sure, I will add it in queue. Thanks !
@sravanireddy3001
2 жыл бұрын
What is the difference between csp trusted site and remote site
@SalesforceBolt
2 жыл бұрын
Remote site settings: Before any Apex callout can call an external site, that site must be registered in the Remote Site Settings page, or the callout fails. Salesforce prevents calls to unauthorised network addresses. CSP trusted site: The Lightning Component framework uses Content Security Policy (CSP) to impose restrictions on content. The main objective is to help prevent cross-site scripting (XSS) and other code injection attacks. To use third-party APIs that make requests to an external (non-Salesforce) server or to use a WebSocket connection, add a CSP Trusted Site.
@nitinsen2939
Жыл бұрын
hey you did callout without authentication i want authenticate with my org then do the callout kindly provide code ASAP
@sprutirajpanda394
2 жыл бұрын
Hi yes I follow this code but when I add on record page it's show errors. Failed fetch. So how can we resolve that
@SalesforceBolt
2 жыл бұрын
Hi make sure you are following complete code. You may check code snippet on the blog post here : www.salesforcebolt.com/2021/11/REST-callout-from-lwc-controller.html
Пікірлер: 26