inline script

JavaScript written directly inside a script tag or an event attribute such as onclick, rather than loaded from a file.

In more detail

Moving code into separate files makes a strict policy much easier to apply. A strict Content Security Policy blocks inline scripts unless they carry the right nonce or hash, because injected attacks usually arrive as inline code.

Related terms

Taught in

References