What will happen if you specify an absolute URL in the Worker constructor?

What will happen if you specify an absolute URL in the Worker constructor? Correct Answer Must have the same origin

If you specify an absolute URL, it must have the same origin (same protocol, host, and port) as that containing document. In Firefox, if you want to use workers in extensions and would like to have access to js-ctypes, you should use the ChromeWorker object instead.

Related Questions