Forum Discussion

Hasan Köroğlu's avatar
Mar 22, 2022
Solved

SharePoint Subscription Edition JS error After 2022 March Update

Hello everyone,

After SharePoint Subscription Edition 2022 March Update installation, Some menus of the Modern Sites' throw js exception via the dev console.

For example: Site Information link and Site Permissions link.

Home.aspx:1

[Report Only] Refused to run the JavaScript URL because it violates the following Content Security Policy directive: "script-src 'strict-dynamic' 'unsafe-eval' 'nonce-8cc6d271-043f-4ba3-a97f-847340968cae'". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present.

Home.aspx:1

[Report Only] Refused to run the JavaScript URL because it violates the following Content Security Policy directive: "script-src 'strict-dynamic' 'unsafe-eval' 'nonce-8cc6d271-043f-4ba3-a97f-847340968cae'". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present.

sp-pages-assembly.js?uniqueId=zAU7Q:105

Uncaught (in promise) TypeError: e.render is not a function
at sp-pages-assembly.js?uniqueId=zAU7Q:105
(anonymous) @ sp-pages-assembly.js?uniqueId=zAU7Q:105
Promise.then (async)
_isSiteInformationLinkEnabled.window._spLaunchSiteSettings.window._spLaunchSiteSettings @ sp-pages-assembly.js?uniqueId=zAU7Q:105
(anonymous) @ VM197:1


Do you have any ideo to solve this problem? Or am i have to wait April Update?

 

7 Replies

      • Steve Zhang's avatar
        Steve Zhang
        Icon for Microsoft rankMicrosoft
        No, it won't in April update. Because I am told there is no functional impact and just warning. So the priority is low. I will have a talk with dev to see if he has some bandwidth on this issue quickly. Let me know if it is not the case in your side which do have functionality impact.

Resources