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
Andrej Mihachou 17Andrej Mihachou 17 

Failed to load resource: the server responded with a status of 403 (Forbidden)

Hello everyone!
I have an issue with lightning:container. It throws "Failed to load resource: the server responded with a status of 403 (Forbidden)" error upon loading and refuses to load.
I address the resource in the code like so: 
<lightning:container src="{!$Resource.namespace__resourceName + '/index.html'}"/>
The issue seem to reproduce mostly when I'm logged under a user with reduced permissions. However, the issue reproduces when I'm logged under a user with System Administrator profile as well.
Any help would be greatly appreciated!
 
anil sharma 68anil sharma 68
go to static resource edit page and makse sure cache control is set to public