We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee656b4 commit fde96d2Copy full SHA for fde96d2
index.html
@@ -130,7 +130,15 @@ <h2>Sample Chart with Restricted Data</h2>
130
);
131
}
132
};
133
- request.open("GET", data_url, true);
+ request.onloadend = function() {
134
+ if(request.status == 403) {
135
+ console.log('Not authorized for the data, got a 403');
136
+ UI.USER_INFO.innerText = `${manager.user.name}, you are not authorized to load the data. Did you join the the Serverless Data Users Globus Group?`;
137
+ UI.CHART.style.display = 'none';
138
+ UI.CANVAS.style.display = 'none';
139
+ };
140
141
+ request.open("GET", data_url, true);
142
request.setRequestHeader('Authorization', `Bearer ${access_token}`);
143
request.send();
144
} else {
0 commit comments