A deferred that is resolved when the detection is complete. The deferred is never rejected.
Downloads the Site from the server.
URL of the Essentials REST endpoint for this site
Called with the results on success
Called with the error on failure
Gets the full site object. Always true in our viewer.
Update the site token from a scraped url fragment
The token as supplied in the fragment
The url of the site endpoint
Detects if CORS is both necessary (Essentials is on a different origin than the host page) and enabled. If so, the corsEnabledServers are updated to include the Essentials server host.