Can we use script-src 'self' 'unsafe-inline' in the content security policy of the .net application?
MSUser V
1
Reputation point
In our asp.net SharePoint application, we have used script-src 'self' 'unsafe-inline' in the content security policy as sharepoint is generating some inline javascript code dynamically at runtime. But CSP validator showed red flag for using 'unsafe-inline'. Could you please suggest we can use 'self' 'unsafe-inline' as sharepoint framework itself has some inline codes or any other recommendation?
Sign in to answer