From 40be10af6734023fa1d519522433257a4c3b7064 Mon Sep 17 00:00:00 2001 From: kokofixcomputers Date: Mon, 1 Jul 2024 10:35:37 -0700 Subject: [PATCH] Fix change sharing resulting in 403 --- src/hugchat/hugchat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hugchat/hugchat.py b/src/hugchat/hugchat.py index 354aa56..2ca09c2 100644 --- a/src/hugchat/hugchat.py +++ b/src/hugchat/hugchat.py @@ -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,