Discussion :: Javascript - CS
- What will happen if you specify an absolute URL in the Worker constructor?
A.
Resolves itself |
B.
Must have the same origin |
C.
Must not have the same origin |
D.
None of the mentioned |
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