function getStoreEndpointWithUrlEncodedAuth(dsn) {
    return getStoreEndpoint(dsn) + "?" + _encodedAuth(dsn);
}
Returns the store endpoint URL with auth in the query string.

Sending auth as part of the query string and not as custom HTTP headers avoids CORS preflight requests.