Skip to content

Commit

Permalink
Send Referer header with balrog admin requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhearsum committed Jun 12, 2019
1 parent eca540b commit 2672e0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/balrogclient/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def do_request(self, url, data, method):
logging.debug("Data sent: %s", sanitised_data)
else:
logging.debug("Data sent: %s", data)
headers = {"Accept-Encoding": "application/json", "Accept": "application/json", "Content-Type": "application/json"}
headers = {"Accept-Encoding": "application/json", "Accept": "application/json", "Content-Type": "application/json", "Referer": self.api_root}
before = time.time()
access_token = _get_auth0_token(self.auth0_secrets)
auth = BearerAuth(access_token)
Expand Down

0 comments on commit 2672e0e

Please sign in to comment.