How to include JS file link into Browser console

54 views Asked by At

I want to include a file into the Browser console.

I have used

document.write("<script src='https://cdnjs.cloudflare.com/ajax/libs/knockout/3.5.0/knockout-3.5.0.debug.js'></script>");

but i get this error:

Refused to load the script '...' because it violates the following Content Security Policy directive: "script-src 'nonce-74eCu_hm3_B6K5S7B4_qbQ' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:". Note that 'strict-dynamic' is present, so host-based allowlisting is disabled. Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Is their any way to paste a JS file link into the browser console?

0

There are 0 answers