You need to sign in to do that
Don't have an account?
Content Security Policy: The page's settings blocked the loading of a resource at self ("script-src").
I am getting error on component loading, that lightning component contains record edit form. This error usually comes whenerver some deployment is done. This is not a persistent error. I am not able to find the root cause. Below is the error message which is being appearing in the console log.
Content Security Policy: The page's settings blocked the loading of a resource at self ("script-src"). Source: onfocusin attribute on DIV element. view
Object { component: "lightning:recordEditForm", componentStack: "[lightning:recordEditForm]", action: null, name: "AuraFriendlyError", message: "Error in fetching record or record metadata. [[object Object]]", kg: (23) […], df: "wireRecordUi/a._subscription<.error<()
As per my knowledge it might be related to jQuery which looks like it does some detection using focusin.
Refer below link.
https://stackoverflow.com/questions/37298608/content-security-policy-the-pages-settings-blocked-the-loading-of-a-resource
Best Regards,
Sandhya