Skip to content

Commit

Permalink
Change default value if header isn't found
Browse files Browse the repository at this point in the history
  • Loading branch information
abhahn committed Jul 31, 2024
1 parent 2a26242 commit ebc45f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def comma_separated_string_to_list(s: str) -> List[str]:


def is_user_originated_request(request):
origin = request.headers.get("Sec-Fetch-Site")
origin = request.headers.get("Sec-Fetch-Site", "none")
if origin == "none":
return True

Expand Down

0 comments on commit ebc45f7

Please sign in to comment.