Skip to main content
Hi guys,

I am facing an issue with lightning community builder. While checking site audit from semrush tool, we are getting blocked javascript error for a home page and when inspecting the pagesource, it generated some random js scripts like resource.js, app.js and clicking on these scripts giving me javascript code which is broken according to the semrush report. Please could you tell me how these scripts are generating automatically on the site homepage?
2 件の回答
  1. 2020年9月4日 14:48
    Hi Swetha,

    Thanks for your reply. 

    We had a community and we used a bootstrap file in a static resource and a jquery zip file only.

    In our lightning component code, we have used them using <ltng:require script="" > which is the right way to use scripts.

    But on semrush report and when we do inspect of our community builder page too, there are some scripts which are generated by community

    builder page itself. Hi Swetha,Thanks for your reply. We had a community and we used a bootstrap file in a static resource and a jquery zip file only.

    Please see the attached screenshot. Also, in semrush report, it is saying status 400 which signifies syntax error but these scripts are not created by us.So, we don't know what causing the aura framework to generate these syntax issues.

    User-added image

    Is it related to aura framework as it is community designed pages of salesforce or CSP security settings and locker settings? In community there is a toggle button for locker service. We switched it off too but still getting the error.

    Our community builder csp setting is good protection ie. allow framing by external domains. 

    Please help me asap. It is a very urgent issue and thanks in advance!
0/9000