Hexret

Web Security · Browser Security

importScripts()

A classic-worker API that synchronously fetches and runs one or more scripts in the worker's context. A cross-origin import can run there unless a resource policy or the worker response's Content Security Policy blocks it; script-src governs classic imports. Module workers use module imports instead.

Where you practice it

Related terms