Try our conversational search powered by Generative AI!

Extract injeced script?

Vote:
 

Hi,

When you enable tracking, Find injects three script tags at the bottom of the page. One of them contains inline script. Unfortunately out content security policy prevents inline scripts. Is there away to not inject this, so I can extract it to a separate file?

#91613
Oct 09, 2014 13:18
Vote:
 

I guess you could call the client resource service and extract the scripts:

var service = ServiceLocator.Current.GetInstance<IClientResourceService>();
var a = service.GetRequiredResources("Header");
var b = service.GetRequiredResources("Footer");
#113422
Nov 20, 2014 2:54
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.