Skip to content

Commit 07de8e0

Browse files
committed
Update helpers.js
1 parent 7ae39c5 commit 07de8e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/src/lib/helpers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ export async function setCurrentServerQueryTimeout(timeout) {
142142
export function setCurrentServerSlashApiKey(slashApiKey) {
143143
if (slashApiKey) {
144144
clientStubOptions.headers['X-Auth-Token'] = slashApiKey
145-
clientStubOptions.headers['Authorization'] = 'Bearer ' + slashApiKey
145+
// Note: Authorization header removed due to CORS policy restrictions on Dgraph Cloud
146+
// clientStubOptions.headers['Authorization'] = 'Bearer ' + slashApiKey
146147
}
147148
}
148149

0 commit comments

Comments
 (0)