function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LinvioIncLinvioInc 

Access-Control-Allow-Origin error with ltng:require static resource in lightning flow

We're getting an "Access-Control-Allow-Origin" error when we try to include JS libraries in a lightning flow component.

We've CORS whitelisted the following:
  • https://*.force.com
  • https://*.salesforce.com
  • https://linvioevents-dev-ed.my.salesforce.com
And referenced the static resources containing the js code via $Resource in a ltng:require component:
 
<ltng:require styles=""  scripts="{!join(',','/resource/evt__JQuery/jquery-3.2.1.min.js',$Resource.EventManagement + '/moment/moment.js',$Resource.TimezonePicker+'/timezone-picker.js')}"  afterScriptsLoaded="{!c.afterJSLoaded}" />
But the platform still thinks we have a CORS problem:
 
Failed to load https://linvioevents-dev-ed.my.salesforce.com/visualforce/session?url=https%3A%2F%2Flinvioevents-dev-ed--evt.na7.visual.force.com%2Fresource%2Fevt__JQuery%2Fjquery-3.2.1.min.js: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

Has anyone else run into this?  Is there a fix/work-around?

Thanks
SandhyaSandhya (Salesforce Developers) 
Hi,

After some research I found below link ,refer if that can help you.

https://salesforce.stackexchange.com/questions/176331/no-access-control-allow-origin-locker-service-ltngrequire
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
 
Best Regards
Sandhya
 
patricia wildpatricia wild
As the world continues to become a dangerous place, it's critical to take steps to ensure that our facilities are safe and secure. And while there are numerous options for access control systems Miami (http://dicsan.com/access_control/access-control-miami/) and the surrounding areas, including companies that install them for you. There are also many different biometric solutions for those facilities. Utilizing the latest biometric technology to screen employees and visitors. Along with access control systems designed to keep the facility safe from prohibited access, it is best to ensure that everyone is kept safe and secure.