Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

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

  2. A.

     Resolves itself

    B.

     Must have the same origin

    C.

     Must not have the same origin

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    If you specify an absolute URL, it must have the same origin (same protocol, host, and port) as that containing document.


Be The First To Comment