Skip to content

Commit

Permalink
Fix change sharing resulting in 403
Browse files Browse the repository at this point in the history
  • Loading branch information
kokofixcomputers authored Jul 1, 2024
1 parent ba48b7c commit 40be10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hugchat/hugchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def set_share_conversations(self, val: bool = True):

r = self.session.post(
self.hf_base_url + "/chat/settings",
headers={"Referer": "https://huggingface.co/chat"},
headers={"Referer": "https://huggingface.co/chat", "Origin":"https://huggingface.co"},
cookies=self.get_cookies(),
allow_redirects=True,
files=settings,
Expand Down

0 comments on commit 40be10a

Please sign in to comment.