I want to block
webpage's inline (and external) scripts, and later insert my own scripts into webpage.It seems that I can hook webRequest.onHeadersReceived to insert a fake CSP header to disable inline scripts?
However then how do I insert my own scripts into webpage? If my scripts are dynamically generated.
On Monday, February 25, 2013 11:47:23 PM UTC+8, PhistucK wrote:
Depending on your context (webpage? background page? extension page?), you might be able to leverage Content Security Policy.
I want to block certain script tag from execution.
For external script I can use beforeload event to reject them.
But how to prevent execution of inline JavaScript?
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.