Skip to content

Commit

Permalink
Dropping Authorization from graphql hash
Browse files Browse the repository at this point in the history
  • Loading branch information
pdohogne-magento committed Aug 2, 2021
1 parent a787f86 commit 517fa8f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions etc/vcl_snippets/hash.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@
if ( req.http.Authorization ~ "^Bearer" ) {
set req.hash += "Authorized";
}

set req.hash += req.url;
set req.hash += req.http.Host;
set req.hash += req.http.Fastly-SSL;
set req.hash += req.vcl.generation;
return (hash);
}

0 comments on commit 517fa8f

Please sign in to comment.