Skip to content

Commit

Permalink
fix(dgraph): Add X-Dgraph-AuthToken to list of access control allowed…
Browse files Browse the repository at this point in the history
… headers (#7311)

Fixes GRAPHQL-928

This would allow the user to do schema alter operations from the browser when they have Poor Man's auth enabled on Alpha.

(cherry picked from commit 4b3b2d9)
  • Loading branch information
pawanrawal authored Jan 15, 2021
1 parent 8e52652 commit 5ad79eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/x.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const (
// bulk load.
GroupIdFileName = "group_id"

AccessControlAllowedHeaders = "X-Dgraph-AccessToken, " +
AccessControlAllowedHeaders = "X-Dgraph-AccessToken, X-Dgraph-AuthToken, " +
"Content-Type, Content-Length, Accept-Encoding, Cache-Control, " +
"X-CSRF-Token, X-Auth-Token, X-Requested-With"
DgraphCostHeader = "Dgraph-TouchedUids"
Expand Down

0 comments on commit 5ad79eb

Please sign in to comment.