Added Auth

This commit is contained in:
Srinath Narayanan
2020-11-13 14:27:27 -08:00
parent 9f4fda13e7
commit 58b5caed7e
10 changed files with 280 additions and 348 deletions

View File

@@ -2543,7 +2543,6 @@ export default class Explorer {
const databaseAccountLocation = databaseAccount && databaseAccount.location.toLowerCase();
const disallowedLocationsUri = `${configContext.BACKEND_ENDPOINT}/api/disallowedLocations`;
const authorizationHeader = getAuthorizationHeader();
console.log("auth header:" + JSON.stringify(authorizationHeader));
try {
const response = await fetch(disallowedLocationsUri, {
method: "POST",