Skip to content

Commit

Permalink
Merge pull request #460 from pawel-siejba/fix/graph-ql-http-auth
Browse files Browse the repository at this point in the history
Disable http auth for GraphQL endpoint
  • Loading branch information
vvuksan authored Jun 23, 2021
2 parents e3c9976 + c249724 commit 5f9c297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/vcl_snippets_basic_auth/recv.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# locking themselves out. /oauth and /rest have their own auth so we can skip Basic Auth on them as well
if ( table.lookup(magentomodule_basic_auth, regsub(req.http.Authorization, "^Basic ", ""), "NOTFOUND") == "NOTFOUND" &&
!req.url ~ "^/(index\.php/)?####ADMIN_PATH####/" &&
!req.url ~ "^/(index\.php/)?(rest|oauth)/" &&
!req.url ~ "^/(index\.php/)?(rest|oauth|graphql)/" &&
!req.url ~ "^/pub/static/" ) {
error 771;
}

0 comments on commit 5f9c297

Please sign in to comment.